Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreferPeerBalancer ¶
type PreferPeerBalancer struct { lbp.LoadBalancePolicy // contains filtered or unexported fields }
PreferPeerBalancer is a balancer that chooses the provided peer if it's in the provided list of peers, otherwise it load balances the peers.
func NewPreferPeer ¶
func NewPreferPeer(peerURL string, balancer lbp.LoadBalancePolicy) *PreferPeerBalancer
NewPreferPeer creates a balancer that chooses the provided peer if it's in the provided list of peers, otherwise it load balances the peers.
Click to show internal directories.
Click to hide internal directories.