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

FuncType HandlerFunc

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

The HandlerFunc type is an adapter to allow the use of ordinary functions as [Handler]. If f is a function with the appropriate signature, HandlerFunc(f) is a [Handler] that calls f.

func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error)

Source from the content-addressed store, hash-verified

32// [Handler]. If f is a function with the appropriate signature, HandlerFunc(f)
33// is a [Handler] that calls f.
34type HandlerFunc func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error)
35
36// type check
37var _ Handler = HandlerFunc(nil)

Callers 3

WrapMethod · 0.92
WrapMethod · 0.92
requesthandler.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…