Versions in this module Expand all Collapse all v1 v1.8.9 Sep 17, 2026 v1.8.8 Sep 17, 2026 Changes in this version + const OptimalExtraCapacityFactor + var ErrNoHosts = errors.New("no hosts added") + type Consistent struct + func New() *Consistent + func NewWithReplicationFactor(replicationFactor int) *Consistent + func (c *Consistent) Add(server string) + func (c *Consistent) Done(server string) + func (c *Consistent) Get(client string) (string, error) + func (c *Consistent) GetLeast(client string) (string, error) + func (c *Consistent) GetLoads() map[string]int64 + func (c *Consistent) Inc(server string) + func (c *Consistent) MaxLoad() int64 + func (c *Consistent) Remove(server string) bool + func (c *Consistent) Servers() (servers []string) + func (c *Consistent) UpdateLoad(server string, load int64) + type Host struct + Load int64 + Name string