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

Struct Provider

dns/provider.go:25–35  ·  dns/provider.go::Provider

Provider is a stateful cache for asynchronous DNS resolutions. It provides a way to resolve addresses and obtain them.

Source from the content-addressed store, hash-verified

23
24// Provider is a stateful cache for asynchronous DNS resolutions. It provides a way to resolve addresses and obtain them.
25type Provider struct {
26 sync.RWMutex
27 resolver Resolver
28 // A map from domain name to a slice of resolved targets.
29 resolved map[string][]string
30 logger log.Logger
31
32 resolverAddrsDesc *prometheus.Desc
33 resolverLookupsCount prometheus.Counter
34 resolverFailuresCount prometheus.Counter
35}
36
37type ResolverType string
38

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected