Versions in this module Expand all Collapse all v1 v1.0.3 Jul 17, 2021 v1.0.1 Jul 17, 2021 Changes in this version + var ErrEmptyCircle = errors.New("empty circle") + var Name = "consistent_hash" + func FromContext(ctx context.Context) (string, bool) + func NewContext(ctx context.Context, key string) context.Context + type Consistent struct + NumberOfReplicas int + UseFnv bool + func NewHash() *Consistent + func (c *Consistent) Add(elt Node) + func (c *Consistent) Get(name string) (string, error) + func (c *Consistent) GetN(name string, n int) ([]string, error) + func (c *Consistent) GetTwo(name string) (string, string, error) + func (c *Consistent) Index(etl string) int + func (c *Consistent) Members() []string + func (c *Consistent) Remove(elt Node) + func (c *Consistent) Set(elts []Node) + type Node struct + type Picker struct + func New() *Picker + func (p *Picker) Pick(ctx context.Context, nodes []naming.Instance) (node *naming.Instance, done func(balancer.DoneInfo)) + func (p *Picker) Schema() string