This commit is contained in:
2023-07-31 23:09:00 +08:00
parent 493a58281f
commit 10a64ee646
7 changed files with 287 additions and 309 deletions
+24
View File
@@ -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;
}
}