Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GitCommit = "unknown" GitVersion = "unknown" Builder = "unknown" BuildTimestamp = "0" // mirko populates this PublicAddress = "#" DefaultMux = true )
Functions ¶
func AddStatusPart ¶
AddStatusPart adds a new section to status. frag is used as a subtemplate of the template used to render /debug/status, and will be executed using the value of invoking f at the time of the /debug/status request. frag is parsed and executed with the html/template package. Functions registered with AddStatusFuncs may be used in the template.
func AddStatusSection ¶
AddStatusSection registers a function that generates extra information for /debug/status. If banner is not empty, it will be used as a header before the information. If more complex output than a simple string is required use AddStatusPart instead.
func StatusHandler ¶
func StatusHandler(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.