MCPcopy Create free account
hub / github.com/e-dard/netbug / AuthHandler

Function AuthHandler

netbug.go:95–106  ·  view source on GitHub ↗

AuthHandler returns an http.Handler that provides authenticated access to the various profiler and debug tools in the net/http/pprof and /runtime/pprof packages. The token provided is required as a URL parameter called token for all requests. The netbug package takes care of injecting the token int

(token string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

RegisterAuthHandlerFunction · 0.85

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…