Versions in this module Expand all Collapse all v0 v0.1.6 Apr 14, 2026 Changes in this version + type AlertMessage struct + CheckName string + Detail string + PreviousStatus CheckStatus + Status CheckStatus + Timestamp time.Time + type AlertsConfig struct + Discord []DiscordConfig + PagerDuty []PagerDutyConfig + SMS []SMSConfig + SMTP *SMTPConfig + Teams []TeamsConfig + Webhooks []WebhookConfig + type CheckResult struct + CheckName string + Detail map[string]any + Duration time.Duration + Error string + Status CheckStatus + Timestamp time.Time + type CheckSpec struct + Alerts []string + ExpectedStatus int + Headers map[string]string + Interval Duration + LastCheckInAt *time.Time + LastCheckInStatus string + LatencyThresholdMs int + MaxSilence Duration + Name string + RecordType string + Target string + Timeout Duration + Type CheckType + WarnDays int + type CheckStatus string + const StatusDegraded + const StatusDown + const StatusUnknown + const StatusUp + type CheckType string + const CheckCheckIn + const CheckDNS + const CheckHTTP + const CheckTCP + const CheckTLS + type ClientConfig struct + KeyID string + ServerAddress string + type Config struct + Alerts AlertsConfig + Checks []CheckSpec + Server ServerConfig + Worker WorkerConfig + type DiscordConfig struct + Name string + WebhookURL string + type Duration struct + func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error + func (d Duration) MarshalYAML() (interface{}, error) + type JobSource interface + Ack func(ctx context.Context, lease Lease, result CheckResult) error + Heartbeat func(ctx context.Context, lease Lease) error + Nack func(ctx context.Context, lease Lease, reason string) error + Poll func(ctx context.Context, worker WorkerInfo) ([]Lease, error) + type Lease struct + Check CheckSpec + ExpiresAt time.Time + ID string + IssuedAt time.Time + MonitorID string + OrgID string + Token string + type PagerDutyConfig struct + IntegrationKey string + Name string + type PublicKeyEntry struct + KeyID string + Label string + PublicKey string + type SMSConfig struct + Name string + Phone string + type SMTPConfig struct + From string + Host string + Password string + Port int + Recipients []string + TLS bool + Username string + type ServerConfig struct + AuthorizedUsers []PublicKeyEntry + BindAddress string + BindPort int + Concurrency int + ExternalAddress string + ExternalPort int + JoinToken string + func (s ServerConfig) ExternalURL() string + type TeamsConfig struct + Name string + WebhookURL string + type WebhookConfig struct + Headers map[string]string + Method string + Name string + Timeout Duration + URL string + type WorkerConfig struct + APIEndpoint string + APIToken string + Concurrency int + PollInterval Duration + type WorkerInfo struct + Capabilities []string + ID string + Version string