Skip to main content

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

TypeSourceDescription
HealthCheckerchecker.goOrchestrator: runs checks periodically, aggregates status
ComponentCheckchecker.goInterface: Name, Critical, Check methods
ComponentHealthchecker.goSingle component status: name, status, latency, message
HealthReportchecker.goAggregated report: overall status, readiness, per-component details
Statuschecker.goStatus enum: Healthy, Degraded, Unhealthy

Built-in Checks

TemporalCheck, PostgresCheck, DragonflyCheck, LLMProviderCheck, MCPServerCheck, VaultCheck