Versions in this module Expand all Collapse all v1 v1.0.0 Apr 6, 2024 Changes in this version + type Checker interface + Check func(ctx context.Context) error + Name func() string + type Health struct + func New(opts ...Option) *Health + func (h *Health) CheckLive(ctx context.Context) Result + func (h *Health) CheckReady(ctx context.Context) Result + type Option func(cfg *config) + func WithLiveCheck(check Checker) Option + func WithMaxConcurrent(max int) Option + func WithReadyCheck(check Checker) Option + type Result struct + Checks map[string][]SingleCheckResult + Status Status + type SingleCheckResult struct + Err error + Status Status + Time time.Time + type Status string + const StatusFail + const StatusPass + func (s Status) String() string