Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsistentHash ¶
type ConsistentHash struct {
// contains filtered or unexported fields
}
func NewConsistentHash ¶
func NewConsistentHash(replicas int, hashFunc func([]byte) uint32) *ConsistentHash
func (*ConsistentHash) AddNode ¶
func (c *ConsistentHash) AddNode(node *Node)
func (*ConsistentHash) GetNode ¶
func (c *ConsistentHash) GetNode(hash uint32) *Node
func (*ConsistentHash) RemoveNode ¶
func (c *ConsistentHash) RemoveNode(node *Node)
Click to show internal directories.
Click to hide internal directories.