MCPcopy Create free account
hub / github.com/zalando/skipper / consistentHash

Struct consistentHash

loadbalancer/algorithm.go:104–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 hash uint64 // hash of endpoint
103 }
104 consistentHash struct {
105 hashRing []endpointHash // list of endpoints sorted by hash value
106 }
107)
108
109func (ch *consistentHash) Len() int { return len(ch.hashRing) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected