Versions in this module Expand all Collapse all v0 v0.0.2 Feb 16, 2026 Changes in this version + type CheckSummary struct + CheckID id.ID + LastResult *HealthResult + Latency time.Duration + Name string + Status Status + type CheckType string + const CheckCommand + const CheckCustom + const CheckGRPC + const CheckHTTP + const CheckTCP + type Checker interface + Check func(ctx context.Context, check *HealthCheck) (*HealthResult, error) + Type func() CheckType + type CommandChecker struct + func NewCommandChecker() *CommandChecker + func (c *CommandChecker) Check(ctx context.Context, check *HealthCheck) (*HealthResult, error) + func (c *CommandChecker) Type() CheckType + type ConfigureRequest struct + InstanceID id.ID + Interval time.Duration + Name string + Retries int + Target string + Timeout time.Duration + Type CheckType + type GRPCChecker struct + func NewGRPCChecker(timeout time.Duration) *GRPCChecker + func (c *GRPCChecker) Check(ctx context.Context, check *HealthCheck) (*HealthResult, error) + func (c *GRPCChecker) Type() CheckType + type HTTPChecker struct + func NewHTTPChecker(timeout time.Duration) *HTTPChecker + func (c *HTTPChecker) Check(ctx context.Context, check *HealthCheck) (*HealthResult, error) + func (c *HTTPChecker) Type() CheckType + type HealthCheck struct + Enabled bool + InstanceID id.ID + Interval time.Duration + Name string + Retries int + Target string + TenantID string + Timeout time.Duration + Type CheckType + type HealthResult struct + CheckID id.ID + CheckedAt time.Time + InstanceID id.ID + Latency time.Duration + Message string + Status Status + StatusCode int + TenantID string + type HistoryOptions struct + Limit int + Since time.Time + Until time.Time + type InstanceHealth struct + Checks []CheckSummary + ConsecFails int + InstanceID id.ID + LastChecked time.Time + Status Status + Uptime float64 + type Service interface + Configure func(ctx context.Context, req ConfigureRequest) (*HealthCheck, error) + GetHealth func(ctx context.Context, instanceID id.ID) (*InstanceHealth, error) + GetHistory func(ctx context.Context, checkID id.ID, opts HistoryOptions) ([]HealthResult, error) + ListChecks func(ctx context.Context, instanceID id.ID) ([]HealthCheck, error) + RegisterChecker func(checker Checker) + Remove func(ctx context.Context, checkID id.ID) error + RunCheck func(ctx context.Context, checkID id.ID) (*HealthResult, error) + func NewService(store Store, events event.Bus, auth auth.Provider) Service + type Status string + const StatusDegraded + const StatusHealthy + const StatusUnhealthy + const StatusUnknown + type Store interface + DeleteCheck func(ctx context.Context, tenantID string, checkID id.ID) error + GetCheck func(ctx context.Context, tenantID string, checkID id.ID) (*HealthCheck, error) + GetLatestResult func(ctx context.Context, tenantID string, checkID id.ID) (*HealthResult, error) + InsertCheck func(ctx context.Context, check *HealthCheck) error + InsertResult func(ctx context.Context, result *HealthResult) error + ListChecks func(ctx context.Context, tenantID string, instanceID id.ID) ([]HealthCheck, error) + ListResults func(ctx context.Context, tenantID string, checkID id.ID, opts HistoryOptions) ([]HealthResult, error) + UpdateCheck func(ctx context.Context, check *HealthCheck) error + type TCPChecker struct + func NewTCPChecker(timeout time.Duration) *TCPChecker + func (c *TCPChecker) Check(ctx context.Context, check *HealthCheck) (*HealthResult, error) + func (c *TCPChecker) Type() CheckType v0.0.1 Feb 13, 2026