Skip to main content

Module callback_router

Module callback_router 

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

CallbackReceiverConfig
Configuration for the callback-only receiver router.

Enums§

CallbackAuth
How an incoming callback request is authenticated.
CallbackRouterBuildError
Reasons callback_router can refuse to build.

Functions§

callback_router
Build a router exposing only the callback ingress routes.