Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck struct { Funcs []HealthCheckFunc // contains filtered or unexported fields }
func NewHealthCheck ¶
func NewHealthCheck(ctx context.Context, healthCheckFuncs ...HealthCheckFunc) HealthCheck
func (*HealthCheck) HealthHandler ¶
func (hc *HealthCheck) HealthHandler(w http.ResponseWriter, r *http.Request)
func (*HealthCheck) ReadinessHandler ¶
func (hc *HealthCheck) ReadinessHandler(w http.ResponseWriter, r *http.Request)
func (*HealthCheck) RegisterHandlers ¶
func (hc *HealthCheck) RegisterHandlers(r chi.Router)
func (*HealthCheck) SetReady ¶
func (hc *HealthCheck) SetReady(ready bool)
type HealthCheckFunc ¶
type HealthCheckFunc func() error
Click to show internal directories.
Click to hide internal directories.