Handler is like dns.Handler except ServeDNS may return an rcode and/or error. If ServeDNS writes to the response body, it should return a status code. CoreDNS assumes *no* reply has yet been written if the status code is one of the following: * SERVFAIL (dns.RcodeServerFailure) * REFUSED (dns.Rec
| 49 | // Otherwise, return values should be propagated down the plugin |
| 50 | // chain by returning them unchanged. |
| 51 | Handler interface { |
| 52 | ServeDNS(context.Context, dns.ResponseWriter, *dns.Msg) (int, error) |
| 53 | Name() string |
| 54 | } |
| 55 | |
| 56 | // HandlerFunc is a convenience type like dns.HandlerFunc, except |
| 57 | // ServeDNS returns an rcode and an error. See Handler |
no outgoing calls
no test coverage detected
searching dependent graphs…