Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEndpoints = errors.New("no endpoints available")
ErrNoEndpoints is returned by a Balancer when no endpoints are available, e.g. because service discovery has not yet received any instances.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
Balancer selects one Endpoint from a pool of available endpoints. Implementations may use any strategy: round-robin, random, least-loaded, etc.
Click to show internal directories.
Click to hide internal directories.