qqq
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
|
||||
namespace Kiri\Rpc;
|
||||
|
||||
use Etcd\Client;
|
||||
use Kiri;
|
||||
use Kiri\Abstracts\Component;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
|
||||
|
||||
/**
|
||||
@@ -12,4 +14,26 @@ use Kiri\Abstracts\Component;
|
||||
class RpcManager extends Component
|
||||
{
|
||||
|
||||
|
||||
protected array $services = [];
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function watch(): void
|
||||
{
|
||||
$data = new Client('','');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $service
|
||||
* @return mixed
|
||||
*/
|
||||
public function getServices($service): mixed
|
||||
{
|
||||
return $this->services[$service] ?? null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user