Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsistentHash ¶
type ConsistentHash struct {
// contains filtered or unexported fields
}
func NewConsistentHash ¶
func NewConsistentHash() *ConsistentHash
func NewConsistentHash2 ¶
func NewConsistentHash2(virtual int) *ConsistentHash
func (*ConsistentHash) Add ¶
func (c *ConsistentHash) Add(id string) error
func (*ConsistentHash) Remove ¶
func (c *ConsistentHash) Remove(id string) error
Remove node by id, include virtual node.
Click to show internal directories.
Click to hide internal directories.