MCPcopy
hub / github.com/grafana/dskit / RegisteredAddresses

Method RegisteredAddresses

ring/client/pool.go:221–229  ·  view source on GitHub ↗

RegisteredAddresses returns all the service addresses for which there's an active client.

()

Source from the content-addressed store, hash-verified

219
220// RegisteredAddresses returns all the service addresses for which there's an active client.
221func (p *Pool) RegisteredAddresses() []string {
222 result := []string{}
223 p.RLock()
224 defer p.RUnlock()
225 for addr := range p.members {
226 result = append(result, addr)
227 }
228 return result
229}
230
231// Count returns how many clients are in the cache
232func (p *Pool) Count() int {

Callers 4

removeStaleClientsMethod · 0.95
cleanUnhealthyMethod · 0.95
TestPoolCacheFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestPoolCacheFunction · 0.76