package
5.0.0+incompatible
Repository: https://github.com/qwenode/tailscale.git
Documentation: pkg.go.dev

# Functions

AcceptsEncoding reports whether r accepts the named encoding ("gzip", "br", etc).
AllowDebugAccess reports whether r should be permitted to access various debug endpoints.
Debugger returns the DebugHandler registered on mux at /debug/, creating it if necessary.
No description provided by the author
Error returns an HTTPError containing the given information.
IsProd443 reports whether addr is a Go listen address for port 443.
Protected wraps a provided debug handler, h, returning a Handler that enforces AllowDebugAccess and returns forbidden replies for unauthorized requests.
StdHandler converts a ReturnHandler into a standard http.Handler.
No description provided by the author
VarzHandler is an HTTP handler to write expvar values into the prometheus export format: https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md It makes the following assumptions: - *expvar.Int are counters (unless marked as a gauge_; see below) - a *tailscale/metrics.Set is descended into, joining keys with underscores.
WritePrometheusExpvar writes kv to w in Prometheus metrics format.

# Variables

DevMode controls whether extra output in shown, for when the binary is being run in dev mode.

# Structs

AccessLogRecord is a record of one HTTP request served.
DebugHandler is an http.Handler that serves a debugging "homepage", and provides helpers to register more debug endpoints and reports.
No description provided by the author
HTTPError is an error with embedded HTTP response information.
Port80Handler is the handler to be given to autocert.Manager.HTTPHandler.

# Interfaces

PrometheusMetricsReflectRooter is an optional interface that expvar.Var implementations can implement to indicate that they should be walked recursively with reflect to find sets of fields to export.
PrometheusVar is a value that knows how to format itself into Prometheus metric syntax.
ReturnHandler is like net/http.Handler, but the handler can return an error instead of writing to its ResponseWriter.

# Type aliases

ErrorHandlerFunc is called to present a error response.
ReturnHandlerFunc is an adapter to allow the use of ordinary functions as ReturnHandlers.