Handler is an interface for handling DNS requests.
| 12 | |
| 13 | // Handler is an interface for handling DNS requests. |
| 14 | type Handler interface { |
| 15 | // ServeDNS resolves the DNS request within *DNSContext. |
| 16 | ServeDNS(ctx context.Context, p *Proxy, dctx *DNSContext) (err error) |
| 17 | } |
| 18 | |
| 19 | // DefaultHandler implements [Handler] by calling [Proxy.Resolve]. It is used |
| 20 | // as a default handler if no other handler is specified. |
no outgoing calls
no test coverage detected
searching dependent graphs…