Registry / networking / serialx-hashring

serialx-hashring

JSON →
library0.0.0-20200727003509-22c0c7ab6b1bgogounverified

Implements consistent hashing ring for distributed systems, enabling key-based node assignment.

go get github.com/serialx/hashring
INSTALL
IMPORT
SIG · SERIALX-HASHRING
S
serialx-hashring
networkinggov0.0.0-20200727003509-22c0c7ab6b1b
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.

hashring
github.com/serialx/hashring

Creates a hash ring and maps a key to a node.

package main import ( "fmt" "github.com/serialx/hashring" ) func main() { nodes := []string{"node1", "node2", "node3"} ring := hashring.New(nodes) node, _ := ring.GetNode("mykey") fmt.Printf("Key 'mykey' maps to node: %s\n", node) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200727003509-22c0c7ab6b1blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
serialx-hashring — go get serialx-hashring · libregistry