Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(checker *HealthChecker)
Types ¶
type CheckResult ¶
type CheckResult struct { HealthCheck *HealthChecker Duration time.Duration Error error }
func CheckAll ¶
func CheckAll(ctx context.Context) []*CheckResult
func NewCheckResult ¶
func NewCheckResult(healthCheck *HealthChecker, duration time.Duration, err error) *CheckResult
func (*CheckResult) IsOk ¶
func (c *CheckResult) IsOk() bool
type HealthChecker ¶
type HealthChecker struct { Name string Description string Checker Checker Required bool Enabled bool }
func NewHealthChecker ¶
func (*HealthChecker) IsRequired ¶
func (c *HealthChecker) IsRequired() bool
Click to show internal directories.
Click to hide internal directories.