v0.6.0
Released: 2026-05-01 Tag: v0.6.0 Type: Minor — new feature (health/readiness endpoint presets) PR: #40 — feat/issue-31-health-readiness-presets
What Changed
app — Opt-in health/readiness presets
err := application.EnableHealthReadinessPresets(app.HealthReadinessOptions{
HealthPath: "/healthz",
ReadyPath: "/readyz",
ReadyChecks: []app.ReadyCheck{...},
})
Endpoint behavior
/healthz→200 OKonce presets are enabled./readyz→200 OKwhen bootstrap invariants pass AND all readiness checks returnnil; else503.
Error conditions
| Condition | Error |
|---|---|
UseServer() not called | app.ErrServerNotReady |
| Blank/conflicting paths | app.ErrInvalidPresetOptions / app.ErrRouteConflict |
Non-Goals
UseServer()does not auto-register health/readiness routes — opt-in is explicit.- No framework-built provider probes — readiness checks are caller-provided.
Compatibility
- No breaking changes.
EnableHealthReadinessPresetsis additive.