discover

package
v0.0.0-...-db9179b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

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、被熔断的实例。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL