| 1 |
use crate::config::Config; |
| 2 |
use crate::topology::Topology; |
| 3 |
use metrics_exporter_prometheus::PrometheusHandle; |
| 4 |
use sqlx::SqlitePool; |
| 5 |
use std::sync::Arc; |
| 6 |
|
| 7 |
#[derive(Clone)] |
| 8 |
pub struct AppState { |
| 9 |
pub pool: SqlitePool, |
| 10 |
pub topo: Arc<Topology>, |
| 11 |
pub cfg: Arc<Config>, |
| 12 |
pub prom: PrometheusHandle, |
| 13 |
} |
| 14 |
|