mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
557 B
16 lines
557 B
using System.Collections.Generic;
|
|
using ZeroLevel.Network.Microservices;
|
|
|
|
namespace ZeroLevel.Microservices.Contracts
|
|
{
|
|
public interface IDiscoveryClient
|
|
{
|
|
void Register(MicroserviceInfo info);
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpoints(string serviceKey);
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpointsByGroup(string serviceGroup);
|
|
IEnumerable<ServiceEndpointInfo> GetServiceEndpointsByType(string serviceType);
|
|
|
|
ServiceEndpointInfo GetService(string serviceKey, string endpoint);
|
|
}
|
|
}
|