Versions in this module Expand all Collapse all v1 v1.0.0 May 11, 2024 Changes in this version + type Checker interface + Check func(ctx context.Context) Health + type Health struct + func NewHealth() Health + func (h *Health) AddInfo(key string, value any) *Health + func (h *Health) Down() *Health + func (h *Health) OutOfService() *Health + func (h *Health) Unknown() *Health + func (h *Health) UnmarshalJSON(data []byte) error + func (h *Health) Up() *Health + func (h Health) GetInfo(key string) any + func (h Health) GetStatus() Status + func (h Health) IsDown() bool + func (h Health) IsOutOfService() bool + func (h Health) IsUnknown() bool + func (h Health) IsUp() bool + func (h Health) MarshalJSON() ([]byte, error) + type Status int32 + const Down + const OutOfService + const Unknown + const Up + func StatusString(s string) (Status, error) + func StatusValues() []Status + func (i *Status) UnmarshalJSON(data []byte) error + func (i Status) IsAStatus() bool + func (i Status) MarshalJSON() ([]byte, error) + func (i Status) String() string