Modules

Core Modules

ModuleDescription
lithair_core::httpHTTP server, route guards, firewall
lithair_core::engineSCC2 data engine, state management
lithair_core::rbacRole-based access control
lithair_core::sessionEvent-sourced session management
lithair_core::mfaTOTP multi-factor authentication
lithair_core::consensusRaft consensus, replication, clustering
lithair_core::frontendMemory-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
}