Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ShardSet ¶
type ShardSet interface { // All returns a slice to the shards in this set All() []shard.Shard // AllIDs returns a slice to the shard IDs in this set AllIDs() []uint32 }
ShardSet contains a sharding function and a set of shards, this interface allows for potentially out of order shard sets
func NewShardSet ¶
NewShardSet creates a new sharding scheme with a set of shards
Click to show internal directories.
Click to hide internal directories.