feat: implement real-time service status tracking and health reporting

This commit is contained in:
2026-01-28 18:37:42 -06:00
parent 1733ee5f86
commit 7cc8267c2e
22 changed files with 308 additions and 284 deletions
+3
View File
@@ -2,6 +2,7 @@
use crate::banner::BannerApi;
use crate::banner::Course;
use crate::status::ServiceStatusRegistry;
use anyhow::Result;
use sqlx::PgPool;
use std::sync::Arc;
@@ -10,6 +11,7 @@ use std::sync::Arc;
pub struct AppState {
pub banner_api: Arc<BannerApi>,
pub db_pool: PgPool,
pub service_statuses: ServiceStatusRegistry,
}
impl AppState {
@@ -17,6 +19,7 @@ impl AppState {
Self {
banner_api,
db_pool,
service_statuses: ServiceStatusRegistry::new(),
}
}