Documentation ¶
Index ¶
Constants ¶
View Source
const ( StartingState = health.HealthStateRepairing HealthyState = health.HealthStateHealthy WarningState = health.HealthStateWarning ErrorState = health.HealthStateError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthComponent ¶
type HealthComponent interface { Healthy() Warning(message string) Error(err error) SetHealth(healthState health.HealthState, message *string, params map[string]interface{}) Status() health.HealthState GetHealthCheck() health.HealthCheckResult }
HealthComponent is an extensible component that represents one part of the whole health picture for a service.
type HealthReporter ¶
type HealthReporter interface { status.HealthCheckSource InitializeHealthComponent(name string) (HealthComponent, error) GetHealthComponent(name string) (HealthComponent, bool) UnregisterHealthComponent(name string) bool }
func NewHealthReporter ¶
func NewHealthReporter() HealthReporter
NewHealthReporter - creates a new HealthReporter; an implementation of status.HealthCheckSource which initializes HealthComponents to report on the health of each individual health.CheckType.
Click to show internal directories.
Click to hide internal directories.