MCPcopy
hub / github.com/coredns/coredns / Handler

Interface Handler

plugin/plugin.go:51–54  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 4

NewServerFunction · 0.95
TestTruncatedCNAMEFunction · 0.95
TestHandlerFunction · 0.95
ServeDNSMethod · 0.95

Implementers 15

mockHandlerplugin/plugin_test.go
Cacheplugin/cache/cache.go
Rewriteplugin/rewrite/rewrite.go
CloudDNSplugin/clouddns/clouddns.go
Nomadplugin/nomad/nomad.go
Forwardplugin/forward/forward.go
Chaosplugin/chaos/chaos.go
testHandlerplugin/minimal/minimal_test.go
minimalHandlerplugin/minimal/minimal.go
Etcdplugin/etcd/etcd.go
GRPCplugin/grpc/grpc.go
Azureplugin/azure/azure.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…