MCPcopy
hub / github.com/grafana/dskit / Interface

Interface Interface

middleware/middleware.go:13–15  ·  middleware/middleware.go::Interface

Interface is the shared contract for all middlesware, and allows middlesware to wrap handlers.

Source from the content-addressed store, hash-verified

11// Interface is the shared contract for all middlesware, and allows middlesware
12// to wrap handlers.
13type Interface interface {
14 Wrap(http.Handler) http.Handler
15}
16
17// Func is to Interface as http.HandlerFunc is to http.Handler
18type Func func(http.Handler) http.Handler

Callers 8

TestTracePropagationFunction · 0.65
startingMethod · 0.65
startingMethod · 0.65
waitBeforeJoiningMethod · 0.65
startingMethod · 0.65
startingMethod · 0.65
updatePartitionRingMethod · 0.65

Implementers 8

ErrorHandlermiddleware/errorhandler.go
Logmiddleware/logging.go
RouteInjectormiddleware/route_injector.go
pathRewritemiddleware/path_rewrite.go
httpConnectionTTLMiddlewaremiddleware/http_connection_ttl_middlew
Instrumentmiddleware/instrument.go
HeaderAddermiddleware/header_adder.go
Tracermiddleware/http_tracing.go

Calls

no outgoing calls

Tested by

no test coverage detected