Pool is a pool of DNS connections for a single DNS server.
| 364 | |
| 365 | // Pool is a pool of DNS connections for a single DNS server. |
| 366 | type Pool struct { |
| 367 | mtx sync.RWMutex |
| 368 | conns chan *dns.Conn |
| 369 | closed bool |
| 370 | } |
| 371 | |
| 372 | // NewPool creates a new DNS connection Pool, keeping up to maxConns open. |
| 373 | func NewPool(maxConns uint) *Pool { |
nothing calls this directly
no outgoing calls
no test coverage detected