Versions in this module Expand all Collapse all v1 v1.0.2 Feb 17, 2023 Changes in this version type Node + func (n *Node[T]) VirtualKeys(replicas int) []string v1.0.1 Oct 18, 2022 Changes in this version type Node + func (n *Node[T]) GetKey() string + func (n *Node[T]) GetWeight() int v1.0.0 Oct 18, 2022 Changes in this version + type Node struct + Data T + func NewNode(key string, data T) *Node[T] + func (n *Node[T]) SetWeight(w int) + func (n *Node[T]) Virtuals(replicas int) []hashring.Slot[T] + type NodeManager struct + func NewManager(replicas int) *NodeManager[T] + func (m *NodeManager[T]) Add(node *Node[T]) + func (m *NodeManager[T]) Count() int + func (m *NodeManager[T]) FindNext(key string, num int) []hashring.Slot[T] + func (m *NodeManager[T]) FindOne(key string) (hashring.Slot[T], bool) + func (m *NodeManager[T]) FindPrev(key string, num int) []hashring.Slot[T] + func (m *NodeManager[T]) GetNode(key string) (*Node[T], bool) + func (m *NodeManager[T]) GetNodes() []Node[T] + func (m *NodeManager[T]) Remove(nodeKey string) + func (m *NodeManager[T]) Slots() int