package
0.0.5
Repository: https://github.com/binchencoder/letsgo.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetHashKey returns the hash key from the given context.
GetHashKeyOrEmpty returns the hash key ID from the given context or an empty string if the hash key is not found.
New creates a new HashRing object with a default setting of 20 replicas for each entry.
NewHashKey returns a copy of parent context in which a new consistent has key is created and attached.
WithHashKey returns a copy of parent context in which the given hash key is attached.

# Variables

ErrEmptyCircle is the error returned when trying to get an element when nothing has been added to hash.

# Structs

HashRing holds the information about the members of the consistent hash circle.
Member represents the key and value of the member in ring.