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

FuncType PoolAddrFunc

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

PoolAddrFunc is an implementation of PoolFactory for functions that accept an instance address.

func(addr string) (PoolClient, error)

Source from the content-addressed store, hash-verified

43// PoolAddrFunc is an implementation of PoolFactory for functions that
44// accept an instance address.
45type PoolAddrFunc func(addr string) (PoolClient, error)
46
47func (f PoolAddrFunc) FromInstance(inst ring.InstanceDesc) (PoolClient, error) {
48 return f(inst.Addr)

Callers 2

TestPoolCacheFunction · 0.85
TestRemoveClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected