abstractServiceDiscovery <Client, ServiceDiscoveryConfigOptions, RegisterServiceInstance, QueryServiceInstance, GetInstanceOptions>
Index
Constructors
Methods
Constructors
constructor
Type parameters
- Client
- ServiceDiscoveryConfigOptions: ServiceDiscoveryOptions<QueryServiceInstance, Record<string, any>>
- RegisterServiceInstance
- QueryServiceInstance = RegisterServiceInstance
- GetInstanceOptions = RegisterServiceInstance
Methods
publiccreateClient
publicgetInstance
获取一个可用服务实例(带负载均衡)
publicabstractgetInstances
获取可用服务列表
publicsetLoadBalancer
设置负载均衡策略
服务发现抽象类