package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

InsertionSort inserts an bucket into a hashring by binary searching for the index which would satisfy the overall "sorted" status of the ring returning the updated hashring.
New returns a new consistent hash.
OptBuckets adds buckets to the consistent hash.
OptHashFunction sets the hash function.
OptReplicas sets the bucket virtual replica count.
StableHash implements the default hash function with a stable crc64 table checksum.

# Constants

DefaultReplicas is the default number of bucket virtual replicas.

# Structs

ConsistentHash creates hashed assignments for each bucket.
HashedBucket is a bucket in the hashring that holds the hashcode, the bucket name (as Bucket) and the virtual replica index.

# Type aliases

HashFunction is a function that can be used to hash items.
Option mutates a consistent hash.