Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/dskit
/ Wrap
Method
Wrap
middleware/middleware.go:14–14 ·
view source on GitHub ↗
(http.Handler)
Source
from the content-addressed store, hash-verified
12
// to wrap handlers.
13
type
Interface
interface
{
14
Wrap(http.Handler) http.Handler
15
}
16
17
// Func is to Interface as http.HandlerFunc is to http.Handler
Callers
15
TestTracePropagation
Function · 0.65
starting
Method · 0.65
waitPartitionAndRegisterOwner
Method · 0.65
starting
Method · 0.65
waitBeforeJoining
Method · 0.65
starting
Method · 0.65
starting
Method · 0.65
updatePartitionRing
Method · 0.65
NewTCPTransport
Function · 0.65
CAS
Method · 0.65
GetGRPCDialOptions
Method · 0.65
initModule
Method · 0.65
Implementers
8
ErrorHandler
middleware/errorhandler.go
Log
middleware/logging.go
RouteInjector
middleware/route_injector.go
pathRewrite
middleware/path_rewrite.go
httpConnectionTTLMiddleware
middleware/http_connection_ttl_middlew
Instrument
middleware/instrument.go
HeaderAdder
middleware/header_adder.go
Tracer
middleware/http_tracing.go
Calls
no outgoing calls
Tested by
14
TestTracePropagation
Function · 0.52
TestRouteInjector
Function · 0.52
TestTimeoutMiddleware
Function · 0.52
TestThroughputMetricHistogram
Function · 0.52
TestClusterValidationMiddleware
Function · 0.52
TestClusterValidationMiddlewareWithExcludedPaths
Function · 0.52
TestClusterValidationMiddlewareWithExcludedUserAgents
Function · 0.52
TestHTTPConnectionTTLMiddleware_Wrap
Function · 0.52
TestHTTPConnectionTTLMiddleware_RemoveIdleExpiredConnections
Function · 0.52
TestHTTPConnectionTTLMiddleware_RemoveIdleExpiredConnectionsKeepsActiveConnections
Function · 0.52
TestHTTPConnectionTTLMiddleware_IdleCleanupThenRequest
Function · 0.52
TestLoggingRequestWithExcludedHeaders
Function · 0.52