health
Health check orchestration that periodically evaluates component health and produces an aggregated status report. Supports pluggable checks for Temporal, PostgreSQL, Dragonfly, LLM providers, MCP servers, and Vault.
Used by cmd/worker, cmd/ui.
Usage
import "cruvero/internal/health"
Key Types / Interfaces
| Type | Source | Description |
|---|---|---|
HealthChecker | checker.go | Orchestrator: runs checks periodically, aggregates status |
ComponentCheck | checker.go | Interface: Name, Critical, Check methods |
ComponentHealth | checker.go | Single component status: name, status, latency, message |
HealthReport | checker.go | Aggregated report: overall status, readiness, per-component details |
Status | checker.go | Status enum: Healthy, Degraded, Unhealthy |
Built-in Checks
TemporalCheck, PostgresCheck, DragonflyCheck, LLMProviderCheck, MCPServerCheck, VaultCheck