MCPcopy
hub / github.com/tailscale/tailscale / ExampleDebugHandler_Handle

Function ExampleDebugHandler_Handle

tsweb/debug_test.go:164–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func ExampleDebugHandler_Handle() {
165 mux := http.NewServeMux()
166 dbg := Debugger(mux)
167 // Registers /debug/flushcache with the given handler, and adds a
168 // link to /debug/ with the description "Flush caches".
169 dbg.Handle("flushcache", "Flush caches", http.HandlerFunc(http.NotFound))
170}
171
172func ExampleDebugHandler_KV() {
173 mux := http.NewServeMux()

Callers

nothing calls this directly

Calls 2

DebuggerFunction · 0.70
HandleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…