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

FuncType MiddlewareFunc

proxy/middleware.go:10–10  ·  view source on GitHub ↗

MiddlewareFunc is a function that implements the [Middleware] interface.

func(h Handler) (wrapped Handler)

Source from the content-addressed store, hash-verified

8
9// MiddlewareFunc is a function that implements the [Middleware] interface.
10type MiddlewareFunc func(h Handler) (wrapped Handler)
11
12// type check
13var _ Middleware = MiddlewareFunc(nil)

Callers 2

newRatelimitMwMethod · 0.92
middleware.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…