Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashRing ¶
type HashRing[Node constraints.Ordered] struct { // contains filtered or unexported fields }
func (*HashRing[Node]) GetNode ¶
func (hr *HashRing[Node]) GetNode(key Node) (n Node)
GetNode returns the node that a given key maps to
func (*HashRing[Node]) RemoveNodes ¶
func (hr *HashRing[Node]) RemoveNodes(nodes ...Node)
func (*HashRing[Node]) ResetNodes ¶
func (hr *HashRing[Node]) ResetNodes(nodes ...Node)
Click to show internal directories.
Click to hide internal directories.