Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallPathHandler ¶
InstallPathHandler registers the healtz checks under path. This function can only be called once per mux/path combo.
func RegisterDefaultChecks ¶
func RegisterDefaultChecks(mux mux, checks ...Checker)
RegisterDefaultChecks register the default checks along with the passed in checks.
func RegisterPingEndpoint ¶
func RegisterPingEndpoint(mux mux)
RegisterPingEndpoint registers the ping endpoint to a serve mux.
Types ¶
type Checker ¶
Checker is a named healthz checker.
var PingHealthz Checker = ping{}
PingHealthz returns true automatically when checked.
func NamedCheck ¶
NamedCheck returns a healthz checker for the given name and function.
Click to show internal directories.
Click to hide internal directories.