mirror of https://github.com/ogoun/Zero.git
17 lines
501 B
17 lines
501 B
using System.Collections.Generic;
|
|
|
|
namespace ZeroLevel.Network
|
|
{
|
|
public interface IDiscoveryClient
|
|
{
|
|
bool Register(ExServiceInfo info);
|
|
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpoints(string serviceKey);
|
|
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpointsByGroup(string serviceGroup);
|
|
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpointsByType(string serviceType);
|
|
|
|
ServiceEndpointInfo GetService(string serviceKey, string endpoint);
|
|
}
|
|
} |