scalo 2.9.2

Self-regulating runtime for data-plane services -- config, logging, metrics, health, transport, backpressure, adaptive scaling. Batteries included; idiomatic Rust (also on PyPI).
Documentation
// Project:   scalo
// File:      src/health/mod.rs
// Purpose:   Unified health registry for service health state
// Language:  Rust
//
// License:   Apache-2.0
// Copyright: (c) 2026 HYPERI PTY LIMITED

//! Unified health registry for service readiness and liveness.
//!
//! Provides a global singleton [`HealthRegistry`] that modules register
//! into at construction. The `/readyz` endpoint (or any health check)
//! queries the registry to determine overall service health.
//!
//! # Usage
//!
//! ```rust
//! use scalo::health::{HealthRegistry, HealthStatus};
//!
//! // Register a component health check at construction
//! HealthRegistry::register("kafka_consumer", || HealthStatus::Healthy);
//!
//! // Query overall health
//! assert!(HealthRegistry::is_ready());
//! ```

pub mod registry;

pub use registry::{HealthRegistry, HealthStatus};