Modules
Core Modules
| Module | Description |
|---|---|
lithair_core::http | HTTP server, route guards, firewall |
lithair_core::engine | SCC2 data engine, state management |
lithair_core::rbac | Role-based access control |
lithair_core::session | Event-sourced session management |
lithair_core::mfa | TOTP multi-factor authentication |
lithair_core::consensus | Raft consensus, replication, clustering |
lithair_core::frontend | Memory-first static asset serving |
Usage
Modules are activated via the builder pattern:
use lithair_core::app::LithairServer;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
LithairServer::new()
.with_port(3007)
.with_frontend_at("/", "./public")
.serve()
.await
}