# Packages
Package cache is a caching selector.
# Functions
FilterEndpoint is an endpoint based Select Filter which will only return services with the endpoint specified.
FilterLabel is a label based Select Filter which will only return services with the label specified.
FilterVersion is a version based Select Filter which will only return services with the version specified.
NewSelector NewSelector.
Random is a random strategy algorithm for node selection.
Registry sets the registry used by the selector.
RoundRobin is a roundrobin strategy algorithm for node selection.
SetStrategy sets the default strategy for the selector.
SetWatcher sets the default strategy for the selector.
WithFilter adds a filter function to the list of filters used during the Select call.
WithStrategy sets the selector strategy.
# Variables
DefaultSelector 默认选择器.
ErrNoneAvailable ErrNoneAvailable.
ErrNotFound ErrNotFound.
# Interfaces
Selector builds on the registry as a mechanism to pick nodes and mark their status.
# Type aliases
Filter is used to filter a service during the selection process.
Next is a function that returns the next node based on the selector's strategy.
Option used to initialise the selector.
SelectOption used when making a select call.
Strategy is a selection strategy e.g random, round robin.
Watcher Watcher.