//
pkg.gl
Category
github.com/unit-io/unitdb
server
internal
pkg
hash
package
0.2.0
Repository:
https://github.com/unit-io/unitdb.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
3
Files
164 SLOC
#
Functions
New
New returns the hash of bytes.
NewRing
New initializes an empty ringhash with the given number of replicas and a hash function.
WithSalt
Of returns the hash of bytes.
#
Constants
Init
Init is what 32 bits hash values should be initialized with.
#
Structs
Ring
Ring is the definition of the ringhash.
#
Type aliases
Hash
Hash is a signature of a hash function used by the package.