Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Healthcheck ¶
func Healthcheck(healthcheckables []Healthcheckable) error
Checks health for each of the given health-checkable entities. Fails fast, i.e, when it encounters an unhealthy entity, it immediately returns error.
Types ¶
type HealthcheckFn ¶
type HealthcheckFn = func() error
type Healthcheckable ¶
type Healthcheckable interface {
Healthcheck() error
}
Click to show internal directories.
Click to hide internal directories.