MCPcopy Create free account
hub / github.com/dadgar/onecache / consistentRing

Struct consistentRing

onecache/ring.go:38–43  ·  view source on GitHub ↗

consistentRing is a wrapper around a consistent hash ring that provides helper methods for determining successors and replication peers.

Source from the content-addressed store, hash-verified

36// consistentRing is a wrapper around a consistent hash ring that provides
37// helper methods for determining successors and replication peers.
38type consistentRing struct {
39 self string
40 ring *consistent.Consistent
41 replicas int
42 lock sync.Mutex
43}
44
45// newConsistentRing returns a constinent ring and takes the name of this node
46// and the number of its replicas.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected