MCPcopy Index your code
hub / github.com/cortexproject/cortex / Len

Method Len

pkg/ring/model.go:20–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18type ByAddr []InstanceDesc
19
20func (ts ByAddr) Len() int { return len(ts) }
21func (ts ByAddr) Swap(i, j int) { ts[i], ts[j] = ts[j], ts[i] }
22func (ts ByAddr) Less(i, j int) bool { return ts[i].Addr < ts[j].Addr }
23

Calls

no outgoing calls