Versions in this module Expand all Collapse all v0 v0.0.2 Sep 5, 2019 Changes in this version + var ErrNodeIDExists = errors.New("Node with same id already exists") + 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) error + func (r *Ring) Get(key string) (int, string)