# Packages
No description provided by the author
# Constants
Available indicates the Peer is available for requests.
Connecting indicates the Peer is in the process of connecting.
Unavailable indicates the Peer is unavailable for requests.
# Structs
ErrInvalidPeerConversion is called when a peer can't be properly converted.
ErrInvalidPeerType is when a specfic peer type is required, but was not passed in.
ErrInvalidTransportConversion is called when a transport can't be properly converted.
ErrPeerHasNoReferenceToSubscriber is called when a Peer is expected to operate on a PeerSubscriber it has no reference to.
ErrTransportHasNoReferenceToPeer is called when a transport is expected to operate on a Peer it has no reference to.
ListUpdates specifies the updates to be made to a List.
Status holds all the information about a peer's state that would be useful to Subscribers.
# Interfaces
Chooser is a collection of Peers.
ChooserList is both a Chooser and a List, useful for expressing both capabilities of a single instance.
Identifier is able to uniquely identify a peer (e.g.
List listens to adds and removes of Peers from a peer list updater.
ListImplementation is a collection of available peers, with its own subscribers for peer status change notifications.
Peer captures a concrete peer implementation for a particular transport, providing both observability (Identifier and Status), along with load change notifications (StartRequest) (EndRequest).
StatusPeer captures a concrete peer implementation for a particular transport, exposing its Identifier and Status.
Subscriber listens to changes of a Peer over time.
Transport manages Peers across different Subscribers.
# Type aliases
Binder is a callback for peer.Bind that accepts a peer list and binds it to a peer list updater for the duration of the returned peer list updater.
ConnectionStatus maintains information about the Peer's connection state.
ErrChooseContextHasNoDeadline is returned when a context is sent to a peerlist with no deadline DEPRECATED use yarpcerrors api instead.
ErrPeerAddAlreadyInList is returned to peer list updater if the peerlist is already tracking a peer for the added identifier.
ErrPeerListAlreadyStarted represents a failure because Start() was already called on the peerlist.
ErrPeerListNotStarted represents a failure because Start() was not called on a peerlist or if Stop() was called.
ErrPeerRemoveNotInList is returned to peer list updater if the peerlist is not tracking the peer to remove for a given identifier.