aion_server/api/handlers/mod.rs
1//! Shared handler layer over Engine.
2//!
3//! Module layout:
4//! - `deploy` — operator deploy (load/list/route/unload) handlers.
5//! - `workflows` — start/signal/query/cancel workflow operation handlers.
6//! - `visibility` — the shared list handler.
7//! - `describe` — describe-workflow handler.
8//! - `runs` — run-id resolution and terminal-status reads.
9//! - `payload` — required-field and envelope encode/decode helpers.
10//! - `managed_workers` — the managed-worker projection and failure mapping
11//! shared by `GET /workers/managed` and `DeployService`.
12//! - `error` — engine-error-to-wire-error mapping.
13
14/// Operator deploy handlers shared by both transports.
15pub mod deploy;
16mod describe;
17mod document;
18mod error;
19mod history;
20/// The one managed-worker projection and failure mapping both transports use.
21pub(crate) mod managed_workers;
22mod payload;
23mod runs;
24mod visibility;
25pub(crate) mod workflows;
26
27#[cfg(test)]
28mod test_support;
29
30pub use describe::describe;
31pub use document::{RUN_PACKAGE_NOT_RECORDED, RunDocumentAccess, authorize_run_document};
32pub(crate) use history::{history_window, read_history};
33pub use visibility::list;
34pub use workflows::{
35 cancel, pause, query, rename, reopen, resume, retire_workloop, signal, start,
36 start_with_placement,
37};