156 Commits (7407f404d996594de43a546cfabbd40d776a4e22)

Author SHA1 Message Date
Josh Bleecher Snyder 0868329936 all: use any instead of interface{} 4 years ago
Brad Fitzpatrick 61ee72940c all: use Go 1.18's strings.Cut 4 years ago
Brad Fitzpatrick 24c9dbd129 tsweb: fix JSONHandlerFunc regression where HTTP status was lost on gzip 4 years ago
Brad Fitzpatrick df8f02db3f tsweb: add gzip support to JSONHandlerFunc 4 years ago
Brad Fitzpatrick 41fd4eab5c envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 4 years ago
nicksherron f01ff18b6f all: fix spelling mistakes 5 years ago
Brad Fitzpatrick 722942dd46 tsweb: restore CPU profiling handler 5 years ago
slowy07 ac0353e982 fix: typo spelling grammar 5 years ago
Brad Fitzpatrick 51976ab3a2 tsweb: add vars for unix process start time and version 5 years ago
Brad Fitzpatrick c6740da624 tsweb: make VarzHandler support untyped expvar.Maps for compatibility 5 years ago
Brad Fitzpatrick 7c7eb8094b tsweb: make VarzHandler support expvar.Funcs returning ints/floats 5 years ago
Brad Fitzpatrick 5aba620fb9 tsweb: make VarzHandler capable of walking structs with reflect 5 years ago
Brad Fitzpatrick 3700cf9ea4 tsweb: also support LabelMaps from expvar.Map, without metrics 5 years ago
Brad Fitzpatrick 5f45d8f8e6 tsweb: add VarzHandler tests 5 years ago
julianknodt 3377089583 tsweb: add float64 to logged metrics 5 years ago
David Anderson 0022c3d2e2 tsweb: replace NewMux with a more flexible DebugHandler. 5 years ago
David Anderson 48c25fa36f tsweb: fold StdHandlerOpts and StdHandler200s with StdHandler. 5 years ago
David Anderson 72343fbbec tsweb: register expvars once at startup. 5 years ago
Josh Bleecher Snyder 516e8a4838 tsweb: add num_goroutines expvar 5 years ago
David Anderson 692a011b54 net/interfaces: remove IsTailscaleIP, make callers use tsaddr. 5 years ago
Brad Fitzpatrick 017dcd520f tsweb: export VarzHandler 5 years ago
David Anderson 57cd7738c2 tsweb: add an endpoint to manually trigger a GC. 5 years ago
chungdaniel e7ac9a4b90
tsweb: refactor JSONHandler to take status code from error if it is present (#905) 6 years ago
Josh Bleecher Snyder 3b46655dbb tsweb: add StatusCodeCounters to HandlerOptions 6 years ago
Josh Bleecher Snyder e98f2c57d6 tsweb: add StdHandlerOpts that accepts an options struct 6 years ago
David Crawshaw 815bf017fc tsweb: when unwrapping HTTPError, record the user-facing message also in the log 6 years ago
David Crawshaw dea3ef0597 tsweb: make JSONHandlerFunc implement ReturnHandler, not http.Handler 6 years ago
halulu 1835bb6f85
tsweb: rewrite JSONHandler without using reflect (#684) 6 years ago
Zijie Lu c9e40abfb8 tsweb: jsonhandler: fix content type 6 years ago
Zijie Lu d1a30be275 tsweb: JSONHandler: supports HTTPError 6 years ago
Zijie Lu 5e1ee4be53 tsweb: fix JSONHandler nil response 6 years ago
halulu 1d2e497d47
tsweb: JSONHandler using reflect (#437) 6 years ago
David Anderson 0038223632 tstest: rename from testy. 6 years ago
David Anderson eccae0cd0c tsweb: add ReturnHandlerFunc. 6 years ago
Brad Fitzpatrick 7bf436ba30 tsweb: add some Benchmarks 6 years ago
Brad Fitzpatrick 64334143a1 tsweb: rename Handler to ReturnHandler 6 years ago
David Anderson b446de103a tsweb: fix tests. 6 years ago
David Anderson af3a9dfad6 tsweb: add a StdHandler that doesn't log 200 responses. 6 years ago
Brad Fitzpatrick 2863e49db9 tsweb: don't flush, treat no-op Handler as 200, like Go 6 years ago
David Anderson 5d995d9d6b tsweb: add a test case for nil child errors in tsweb.Error. 6 years ago
David Anderson 2c2dff9559 tsweb: don't panic if we get a tsweb.Error with no embedded error. 6 years ago
David Anderson 12a6626a94 tsweb: use a ResponseWriter wrapper to log more accurately. 6 years ago
Brad Fitzpatrick 6de37f4cc0 tsweb: move some comments, add a TODO 6 years ago
David Anderson df4636567f tsweb: adjust names and docs of the "handler with errors" functions. 6 years ago
David Anderson 98eceae55e tsweb: add a Handler type. 6 years ago
Brad Fitzpatrick c706731dc7 tsweb: add copyright header 6 years ago
David Anderson a567c56971 tsweb: pull in tlog data structures from corp repo. 6 years ago
Brad Fitzpatrick 5c1e443d34 wgengine/monitor: don't call LinkChange when interfaces look unchanged 6 years ago
Brad Fitzpatrick a9cd8f31de tsweb: don't double import expvar; appease staticcheck 6 years ago
Brad Fitzpatrick 890f5dff40 tsweb: export runtime.MemStats var in Prometheus format 6 years ago