MCPcopy
hub / github.com/tailscale/tailscale / HandleFunc

Method HandleFunc

tsweb/debug.go:116–118  ·  view source on GitHub ↗

Handle registers handler at /debug/ and adds a link to it on /debug/ with the provided description.

(slug, desc string, handler http.HandlerFunc)

Source from the content-addressed store, hash-verified

114// Handle registers handler at /debug/<slug> and adds a link to it
115// on /debug/ with the provided description.
116func (d *DebugHandler) HandleFunc(slug, desc string, handler http.HandlerFunc) {
117 d.Handle(slug, desc, handler)
118}
119
120// HandleSilent registers handler at /debug/<slug>. It does not add
121// a descriptive entry in /debug/ for it. This should be used

Callers 15

newDebugMuxFunction · 0.80
mockRecordingServerFunction · 0.80
httpClusterAdminFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
startIPNServerFunction · 0.80
getLocalBackendFunction · 0.80
newDebugMuxFunction · 0.80
mainFunction · 0.80
newMuxMethod · 0.80
muxFunction · 0.80
mainFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 6

mockRecordingServerFunction · 0.64
TestRoutingFunction · 0.64
newHarnessFunction · 0.64
TestFetchTailnetPeerFunction · 0.64
TestConnectToRecorderFunction · 0.64
TestSendEventFunction · 0.64