Provider is a stateful cache for asynchronous DNS resolutions. It provides a way to resolve addresses and obtain them.
| 23 | |
| 24 | // Provider is a stateful cache for asynchronous DNS resolutions. It provides a way to resolve addresses and obtain them. |
| 25 | type 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 | |
| 37 | type ResolverType string |
| 38 |
nothing calls this directly
no outgoing calls
no test coverage detected