Versions in this module Expand all Collapse all v1 v1.0.0 Oct 19, 2021 Changes in this version + var ErrAddExceedsRingSize = errors.New("cannot add a new node, new size will exceed maximum ring size") + var ErrNodeNotFound = errors.New("node not found") + type Node struct + Host string + Port int + type Ring struct + Nodes []Node + Size uint64 + func New(nodes []Node) Ring + func (r *Ring) Add(n Node) error + func (r *Ring) Remove(node Node) error + func (r Ring) Find(key string) Node