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 New ¶
func New(replicas int, fn Hash) *ConsistentHash
func (*ConsistentHash) Add ¶
func (m *ConsistentHash) Add(keys ...string)
func (*ConsistentHash) GetNode ¶
func (m *ConsistentHash) GetNode(key string) string
Click to show internal directories.
Click to hide internal directories.