Documentation
¶
Overview ¶
Package web renders isutools measurements: a live report, a self-contained downloadable snapshot.html, machine-readable JSON, and a reset endpoint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns the report handler. Mount it under any prefix (e.g. chi's r.Mount("/debug/isutools", ...)); routes are relative: GET /, GET /snapshot.html, GET /json, POST /reset.
Types ¶
type Meta ¶
type Meta struct {
SchemaVersion int `json:"schema_version"`
Time string `json:"time"`
Generation int64 `json:"generation"`
Revision string `json:"revision"`
Dirty bool `json:"dirty"`
Host sysinfo.Info `json:"host"`
}
Meta identifies when, on which host, and from which revision a snapshot was taken. Generation increments on every reset so runs are comparable.
Click to show internal directories.
Click to hide internal directories.