MCPcopy Create free account
hub / github.com/PacktPublishing/System-Programming-Essentials-with-Go / Node

Struct Node

ch13/hashring.go:10–13  ·  view source on GitHub ↗

Node represents a physical or virtual node in the system

Source from the content-addressed store, hash-verified

8
9// Node represents a physical or virtual node in the system
10type Node struct {
11 ID string
12 Addr string
13}
14
15// HashRing represents the consistent hash ring
16type HashRing struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected