Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
HealthCheck provides an HTTP endpoint that returns the health status of the service
func (*HealthCheck) Get ¶
func (hc *HealthCheck) Get() Status
Get the current status of this health check
func (*HealthCheck) Handler ¶
func (hc *HealthCheck) Handler() http.Handler
Handler creates a new HTTP handler.
func (*HealthCheck) Ready ¶
func (hc *HealthCheck) Ready()
Ready is a shortcut for Set(Ready) (kept for backwards compatibility)
func (*HealthCheck) SetLogger ¶
func (hc *HealthCheck) SetLogger(logger *zap.Logger)
SetLogger initializes a logger.
Click to show internal directories.
Click to hide internal directories.