Documentation ¶
Overview ¶
Package polaris provides an etcd service registry https://github.com/polarismesh/polaris
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTimeout is the default registry timeout. DefaultTimeout = time.Second * 5 // ErrNoNodes is returned when the lenth of the node slice is zero. ErrNoNodes = errors.New("no nodes provided") // ErrNoMetadata is returned when metadata failed to fetch. ErrNoMetadata = errors.New("fail to GetMetadata") )
Functions ¶
func GetOneInstance ¶
GetOneInstance will fetch only one instance for use with Polaris's loadbalancer and disable cache by: github.com/open-micro/plugins/v5/selector/registry, option TTF(0).
func NewRegistry ¶
NewRegistry creates a new Polaris registry.
func ServerToken ¶
ServerToken sets the server token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.