MCPcopy
hub / github.com/AdguardTeam/dnsproxy / Handler

Interface Handler

proxy/requesthandler.go:14–17  ·  view source on GitHub ↗

Handler is an interface for handling DNS requests.

Source from the content-addressed store, hash-verified

12
13// Handler is an interface for handling DNS requests.
14type 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.

Callers 5

handleDNSRequestMethod · 0.65
WrapMethod · 0.65
TestMiddleware_WrapFunction · 0.65
WrapMethod · 0.65

Implementers 4

DefaultHandlerproxy/requesthandler.go
TestHandlerproxy/requesthandler_internal_test.go
dnsCryptHandlerproxy/serverdnscrypt.go
TestHandlerratelimit/ratelimit_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…