package
1.0.9
Repository: https://github.com/lab5e/clusterfunk.git
Documentation: pkg.go.dev

# Packages

Package shardpb contains the protobuf-generated code for the internal cluster communication.

# Functions

NewIntSharder shards on integers using a simple mod operation.
NewShard creates a new shard with a weight.
NewShardMap creates a new shard mapper instance.
NewStringSharder hashes a string and calculates a shard based on the hash value.

# Interfaces

Shard represents a partition that a single node is responsible for.
ShardMap is a type that manages shards.

# Type aliases

ShardFunc is a sharding function.