Expand description
Callback-only receiver router.
Builds an axum router that exposes only the three callback ingress routes
(complete, fail, heartbeat) — no admin REST, no static UI assets, no
permissive CORS. Pair with the CLI subcommand awa callbacks serve to
deploy callback ingress on its own host/port, separate from the admin UI.
See ADR-027 for design rationale and the deployable-role split.
let secret = [7u8; 32];
let router = callback_router(
pool,
CallbackReceiverConfig::new(CallbackAuth::Signed(secret)),
)
.await?;Structs§
- Callback
Receiver Config - Configuration for the callback-only receiver router.
Enums§
- Callback
Auth - How an incoming callback request is authenticated.
- Callback
Router Build Error - Reasons
callback_routercan refuse to build.
Functions§
- callback_
router - Build a router exposing only the callback ingress routes.