Documentation
¶
Overview ¶
Package health provides health check and readiness probe support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Status Status `json:"status"`
Message string `json:"message,omitempty"`
LastChecked time.Time `json:"last_checked"`
Duration time.Duration `json:"duration_ms,omitempty"`
}
Check represents a health check.
type Checker ¶
Checker is a function that performs a health check.
func APIKeyChecker ¶
APIKeyChecker checks if an API key is configured.
func DiskSpaceChecker ¶
DiskSpaceChecker checks available disk space.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages health checks.
Click to show internal directories.
Click to hide internal directories.