Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ketama ¶
Ketama implements upstream balancing that is based on the Ketama consistent hashing algorithm.
func (*Ketama) Get ¶
func (k *Ketama) Get(path string) (*types.UpstreamAddress, error)
Get implements the balancing algorithm interface.
func (*Ketama) Set ¶
func (k *Ketama) Set(upstreams []*types.UpstreamAddress)
Set implements the balancing algorithm interface.
Click to show internal directories.
Click to hide internal directories.