Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶ added in v0.0.42
type Opt func(*Sharder)
Opt is used to customer the Sharder's Hasher.
func WithHasher ¶ added in v0.0.42
WithHasher allows for custom Hasher implementations.
func WithLockFreeHasher ¶ added in v0.0.42
func WithLockFreeHasher() Opt
WithLockFreeHasher implements the Hasher interface using lock-free fnv32.
func WithLockingHasher ¶ added in v0.0.42
func WithLockingHasher() Opt
WithLockingHasher is the default Hasher, implemented using a locking fnv32 algorithm.
Click to show internal directories.
Click to hide internal directories.