Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Random ¶
Random randomly balances requests between its upstreams.
func (*Random) Get ¶
func (r *Random) Get(_ string) (*types.UpstreamAddress, error)
Get implements the balancing algorithm interface.
func (*Random) Set ¶
func (r *Random) Set(buckets []*types.UpstreamAddress)
Set implements the balancing algorithm interface.
Click to show internal directories.
Click to hide internal directories.