Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerServer ¶
type ConsumerServer struct { Consumer polaris.ConsumerAPI Namespace string // contains filtered or unexported fields }
func (ConsumerServer) GetOneInstance ¶
func (c ConsumerServer) GetOneInstance(service string) (model.Instance, error)
GetOneInstance 每次仅获取一个可用服务提供者实例,该方法会依次执行路由、负载均衡流程。 该方法默认会过滤掉不健康、隔离、权重为0、被熔断的实例。
Click to show internal directories.
Click to hide internal directories.