RegisterInterface.php 477 字节
<?php

namespace AukeySwrpc\Register;


/**
 * Interface RegisterInterface
 *
 * @package AukeySwrpc\Register
 * @author pengjch 202439 16:23:35
 */
interface RegisterInterface
{
    function getName(): string;

    function register($module, $host, $port, $weight = 1);

    function unRegister($host, $port);

    function getServices(string $module): array;

    function getRandomService(string $module): Service;

    function getWeightService(string $module): Service;
}