MCPcopy Index your code
hub / github.com/tailscale/tailscale / RegisterHTTP

Method RegisterHTTP

util/eventbus/debughttp.go:32–39  ·  view source on GitHub ↗
(td *tsweb.DebugHandler)

Source from the content-addressed store, hash-verified

30}
31
32func (d *Debugger) RegisterHTTP(td *tsweb.DebugHandler) {
33 dh := httpDebugger{d}
34 td.Handle("bus", "Event bus", dh)
35 td.HandleSilent("bus/monitor", http.HandlerFunc(dh.serveMonitor))
36 td.HandleSilent("bus/style.css", serveStatic("style.css"))
37 td.HandleSilent("bus/htmx.min.js", serveStatic("htmx.min.js.gz"))
38 td.HandleSilent("bus/htmx-websocket.min.js", serveStatic("htmx-websocket.min.js.gz"))
39}
40
41//go:embed assets/*.html
42var templatesSrc embed.FS

Callers 1

mainFunction · 0.45

Calls 3

serveStaticFunction · 0.85
HandleSilentMethod · 0.80
HandleMethod · 0.65

Tested by

no test coverage detected