Expand description
Library half of bezant-server.
The binary in main.rs is a thin shell around the reusable pieces here:
router builds an [axum::Router] wired to the CPAPI pass-through
handlers, and AppState is the shared bag of state every handler
needs. Integration tests build the same router against wiremock
instead of a real gateway.
Re-exports§
pub use events::spawn_connector;pub use events::ConnectorCfg;pub use events::EventsHandle;
Modules§
- events
- Event capture + REST surface for streaming CPAPI topics.
Structs§
- AppError
- Wraps
bezant::Errorso axum handlers can bubble errors with?. - AppState
- State shared across all axum handlers.
- Error
Body - A JSON error envelope returned on failure.
Functions§
- router
- Build the full axum router wired to
state. Exposed for integration tests that want to drive the router without opening a TCP listener.