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

Struct dnsWatcher

grpcutil/dns_resolver.go:138–149  ·  view source on GitHub ↗

dnsWatcher watches for the name resolution update for a specific target

Source from the content-addressed store, hash-verified

136
137// dnsWatcher watches for the name resolution update for a specific target
138type dnsWatcher struct {
139 r *Resolver
140 logger log.Logger
141 host string
142 port string
143 service string
144 // The latest resolved address set
145 curAddrs map[string]*Update
146 ctx context.Context
147 cancel context.CancelFunc
148 t *time.Timer
149}
150
151// ipWatcher watches for the name resolution update for an IP address.
152type ipWatcher struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected