Expand description
Arc framework runtime.
Holds the reusable web/runtime machinery — Actix middleware, Tera helpers,
the event-sourced stack wiring, the websocket transport, and the server
bootstrap — behind a builder seam. Applications depend on this crate by
version and plug their own aggregate, projectors, and routes in through
ArcApp::builder. No concrete domain type lives here: the runtime is
generic over arc_core::aggregate::Aggregate.
Modules§
Structs§
- AppState
- Shared application state accessible by request handlers via
web::Data. - ArcApp
- Entry point to the framework.
ArcApp::builder::<MyAggregate>()yields a builder the application configures with its aggregate, projectors, and routes, then drives withArcAppBuilder::serve. - ArcApp
Builder - Application builder, generic over the domain aggregate
A. The concreteA(e.g. an application’sUserAggregate) is supplied by the application crate; the framework never names it. - Projector
Reg - A read-model projector plus the view (table) it maintains. Applications register these against their aggregate so the framework can drive synchronous, read-after-write projections in single-process mode.
Functions§
- check_
app_ health - Copies
.env.exampleto.envwhen no.envfile is present. - check_
database_ health - Verifies database availability for the configured driver. For file-backed
drivers (SQLite) this checks the
DATABASE_URLfile exists and exits with code 1 if missing. Connection-string drivers (Postgres) skip the check. - validate_
environment - Fails fast if required environment variables are missing.