Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFunc ¶
func HandlerFunc() http.HandlerFunc
HandlerFunc returns an http handler function for checking the health of registered checkers.
func RegisterChecker ¶
func RegisterChecker(c ...Checker)
RegisterChecker registers new health checkers.
func SetTimeout ¶
SetTimeout sets the timeout for health checkers. If the timeout reaches, the health check is considered failed. The default timeout is 5 seconds.
Types ¶
Click to show internal directories.
Click to hide internal directories.