Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns an http.Handler
It returns status 204 if all healthcheckers returns true. It returns status 503 (unhealthy) if anyone healthcheckers returns false.
func HandlerFunc ¶
func HandlerFunc(opts ...Option) http.HandlerFunc
HandlerFunc returns an http.HandlerFunc.
Types ¶
type Option ¶
type Option func(*health)
Option adds optional parameter for the HealthcheckHandler.
func WithHealthCheckFuncs ¶
func WithHealthCheckFuncs(f ...daemon.HealthCheckFunc) Option
WithHealthCheckFuncs adds the functions healthcheck of daemon that needs to be added as part of healthcheck.
func WithTimeout ¶
WithTimeout sets the global timeout for all healthcheckers.
Click to show internal directories.
Click to hide internal directories.