This commit is contained in:
2021-10-26 18:58:09 +08:00
parent b68403f581
commit 3d690d6d15
13 changed files with 352 additions and 258 deletions
+53
View File
@@ -0,0 +1,53 @@
<?php
namespace Kiri\Rpc;
use Kiri\Pool\Pool;
/**
*
*/
class Consumers implements OnRpcConsumerInterface
{
/**
* @var Pool
*/
public Pool $pool;
/**
* @param string $method
* @param mixed $data
* @param string $version
*/
public function notify(string $method, mixed $data, string $version = '2.0'): void
{
}
/**
* @param string $method
* @param mixed $data
* @param string $version
* @param string $id
* @return mixed
*/
public function get(string $method, mixed $data, string $version = '2.0', string $id = ''): mixed
{
}
private function get_consul()
{
}
}