Versions in this module Expand all Collapse all v1 v1.1.7 Aug 25, 2021 v1.1.6 Apr 14, 2021 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