dnsWatcher watches for the name resolution update for a specific target
| 136 | |
| 137 | // dnsWatcher watches for the name resolution update for a specific target |
| 138 | type 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. |
| 152 | type ipWatcher struct { |
nothing calls this directly
no outgoing calls
no test coverage detected