You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tsweb
Brad Fitzpatrick 3700cf9ea4 tsweb: also support LabelMaps from expvar.Map, without metrics
We want to use tsweb to format Prometheus-style metrics from
our temporary golang.org/x/net/http2 fork, but we don't want http2
to depend on the tailscale.com module to use the concrete type
tailscale.com/metrics.LabelMap. Instead, let a expvar.Map be used
instead of it's annotated sufficiently in its name.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
debug.go tsweb: replace NewMux with a more flexible DebugHandler. 3 years ago
debug_test.go tsweb: replace NewMux with a more flexible DebugHandler. 3 years ago
jsonhandler.go tsweb: refactor JSONHandler to take status code from error if it is present (#905) 4 years ago
jsonhandler_test.go tsweb: refactor JSONHandler to take status code from error if it is present (#905) 4 years ago
log.go tsweb: use a ResponseWriter wrapper to log more accurately. 4 years ago
tsweb.go tsweb: also support LabelMaps from expvar.Map, without metrics 3 years ago
tsweb_test.go tsweb: also support LabelMaps from expvar.Map, without metrics 3 years ago