Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { Name string `json:"name"` Status HealthcheckStatus `json:"status"` Critical bool `json:"critical"` }
type Healthcheck ¶
type Healthcheck struct { Status HealthcheckStatus `json:"status"` Code int `json:"code"` Timestamp time.Time `json:"timestamp"` Components []*Component `json:"components,omitempty"` }
type HealthcheckStatus ¶
type HealthcheckStatus string
const ( HealthcheckOK HealthcheckStatus = "ok" HealthcheckDegraded HealthcheckStatus = "degraded" HealthcheckError HealthcheckStatus = "failure" )
Click to show internal directories.
Click to hide internal directories.