Skip to main content

Crate bezant_server

Crate bezant_server 

Source
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.

Structs§

AppError
Wraps bezant::Error so axum handlers can bubble errors with ?.
AppState
State shared across all axum handlers.
ErrorBody
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.