Skip to main content

systemprompt_api/services/server/
mod.rs

1//! API server assembly, lifecycle, and readiness.
2//!
3//! Builds the axum router and global middleware stack ([`builder`]), runs the
4//! startup reconciliation and serving loop ([`runner`]), and exposes the
5//! readiness signalling surface ([`is_ready`], [`signal_ready`],
6//! [`wait_for_ready`]) used by external health probes. Discovery, health,
7//! metrics, and route configuration live in the private submodules.
8
9pub mod builder;
10mod discovery;
11mod health;
12mod health_detail;
13mod lifecycle;
14pub mod metrics;
15pub mod readiness;
16mod routes;
17pub mod runner;
18mod shutdown;
19
20pub use builder::*;
21pub use readiness::{
22    ReadinessEvent, get_readiness_receiver, init_readiness, is_ready, signal_ready,
23    signal_shutdown, wait_for_ready,
24};
25pub use runner::*;