Registry / utility / nspcc-dev-hrw

nspcc-dev-hrw

JSON →
library1.0.9gogounverified

Package hrw implements Rendezvous hashing.

go get github.com/nspcc-dev/hrw
INSTALL
IMPORT
SIG · NSPCC-DEV-HRW
N
nspcc-dev-hrw
utilitygov1.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hrw
✓ github.com/nspcc-dev/hrw

Perform rendezvous hashing to select a node for a key.

package main import "github.com/nspcc-dev/hrw" func main() { nodes := []string{"node1", "node2"} winner := hrw.SortByWeight(nodes, []byte("key")) _ = winner }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
nspcc-dev-hrw — go get nspcc-dev-hrw · libregistry