Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusPage ¶ added in v0.7.0
type StatusPage struct { // Short description on what the endpoint is for. It will be shown on the main page. Info string // Handler processes the HTTP request for this status page. Handler http.HandlerFunc // Special status page is one that should not be dumped via /all endpoint. // This can be because it uses PUT instead of GET, because it requires extra // query parameters, because it has side effects or simply because it is too // expensive to evaluate. Special bool }
StatusPages describes a status page (HTTP endpoint exposed by the service).
func NewConfigStatusPage ¶ added in v0.7.0
func NewConfigStatusPage(config interface{}) StatusPage
NewConfigStatusPage returns a page with the specified TOML config.
func NewInfoStatusPage ¶ added in v0.7.0
func NewInfoStatusPage() StatusPage
NewInfoStatusPage returns a page with basic info about the process.
func NewLogLevelStatusPage ¶ added in v0.7.0
func NewLogLevelStatusPage() StatusPage
NewLogLevelStatusPage returns a page with basic info about the process.
func NewTopologyStatusPage ¶ added in v0.7.0
func NewTopologyStatusPage(l *topology.Loader) StatusPage
type StatusPages ¶
type StatusPages map[string]StatusPage
StatusPages maps the page URL to the page description.
Click to show internal directories.
Click to hide internal directories.