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

Method Len

loadbalancer/algorithm.go:109–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107)
108
109func (ch *consistentHash) Len() int { return len(ch.hashRing) }
110func (ch *consistentHash) Less(i, j int) bool { return ch.hashRing[i].hash < ch.hashRing[j].hash }
111func (ch *consistentHash) Swap(i, j int) {
112 ch.hashRing[i], ch.hashRing[j] = ch.hashRing[j], ch.hashRing[i]

Callers 2

searchRingMethod · 0.95
boundedLoadSearchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected