Versions in this module Expand all Collapse all v1 v1.0.0 Nov 22, 2023 Changes in this version + var ErrNodeNotFound = errors.New("node not found") + type Node struct + HashId uint32 + Id string + func NewNode(id string) *Node + type Nodes []*Node + func (n Nodes) Len() int + func (n Nodes) Less(i, j int) bool + func (n Nodes) Swap(i, j int) + type Ring struct + Nodes Nodes + func NewRing() *Ring + func (r *Ring) AddNode(id string) + func (r *Ring) Get(key string) string + func (r *Ring) RemoveNode(id string) error