Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { // adds a node to the node ring. Add(node *Node) // get the node responsible for the data key. NodeFor(keys ...string) (*Node, bool) // removes all nodes from the node ring. Remove() // removes a node from the node ring. RemoveByID(id string) // print all nodes PrintNodes() // is the node ring empty IsEmpty() bool }
Manager node manager functions defines.
func NewConsistent ¶
NewConsistent get consistent node manager
Click to show internal directories.
Click to hide internal directories.