Versions in this module Expand all Collapse all v0 v0.1.0 Apr 8, 2023 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 any) + func (h *ConsistentHash) AddWithReplicas(node any, replicas int) + func (h *ConsistentHash) AddWithWeight(node any, weight int) + func (h *ConsistentHash) Get(v any) (any, bool) + func (h *ConsistentHash) Remove(node any) + type Func func(data []byte) uint64