Expand description
§Health Check Module
Comprehensive health checks for production deployments including:
- Liveness Probe: Is the process running?
- Readiness Probe: Is the service ready to accept traffic?
- Startup Probe: Has initial startup completed?
§Usage
ⓘ
use axum::Router;
use guts_node::health::{health_routes, HealthState};
let health_state = HealthState::new();
health_state.set_ready(true);
let app: Router<()> = Router::new()
.merge(health_routes(health_state));Structs§
- Component
Health - Individual component health.
- Health
Response - Overall health response.
- Health
State - Health state for tracking component health.
- Liveness
Response - Liveness probe response.
- Readiness
Checks - Readiness component checks.
- Readiness
Response - Readiness probe response.
- Startup
Response - Startup probe response.
Enums§
- Health
Status - Health status values.
Functions§
- health_
routes - Create health check routes.