Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotZonable = errors.New("given object is not shardable")
ErrNotZonable indicates that the object is Shardable and cannot be sharded.
Functions ¶
Types ¶
type Hasher ¶
type Hasher interface { // Zone returns the zone for the given identity. Zone(elemental.Identity) int // Hash performs the zoning/hashing for the given identifiable. // This method is responsible to set the Zone and the ZHash of the // provided Identifiable. Hash(Shardable) error }
A Hasher is used to zone/zhash an identifiable.
Click to show internal directories.
Click to hide internal directories.