Versions in this module Expand all Collapse all v0 v0.1.0 May 2, 2020 Changes in this version + const Init + func FastMod(x, m uint64) uint32 + func New(b []byte) uint32 + func RandSeed() (uint32, error) + func WithSalt(text []byte, salt uint32) uint32 + type Consistent struct + A []uint16 + K []uint16 + L []uint16 + N uint16 + R []uint16 + W []uint16 + func InitConsistent(blocks, used int) *Consistent + func (c *Consistent) AddBlock() uint16 + func (c *Consistent) FindBlock(key uint64) uint16 + func (c *Consistent) FindPreviousBlock(key uint64) uint16 + func (c *Consistent) GetPath(key uint64, pathBuffer []uint16) []uint16 + func (c *Consistent) RemoveBlock(b uint16) + type Hash func(data []byte) uint32 + type Ring struct + func NewRing(replicas int, fn Hash) *Ring + func (ring *Ring) Add(keys ...string) + func (ring *Ring) Get(key string) string + func (ring *Ring) Len() int + func (ring *Ring) Signature() string