Versions in this module Expand all Collapse all v0 v0.0.2 Jun 5, 2022 Changes in this version + const TopWeight + func Hash(data []byte) uint64 + func Md5(data []byte) []byte + func Md5Hex(data []byte) string + type ConsistentHash struct + func NewConsistentHash() *ConsistentHash + func NewCustomConsistentHash(replicas int, fn Func) *ConsistentHash + func (h *ConsistentHash) Add(node interface{}) + func (h *ConsistentHash) AddWithReplicas(node interface{}, replicas int) + func (h *ConsistentHash) AddWithWeight(node interface{}, weight int) + func (h *ConsistentHash) Get(v interface{}) (interface{}, bool) + func (h *ConsistentHash) Remove(node interface{}) + type Func func(data []byte) uint64