Module log

Module log 

Source

Structs§

SagaLog
SQLite-backed saga log. Owned by AppState as Arc<SagaLog>; every SagaCtx::dispatch and compensate call writes through it. See module-level docs for design notes.
SagaSnapshot
Operator-facing snapshot of a recent saga, for --diag sagas.
UnresolvedSaga
A saga in running or compensating state at startup. Returned by unresolved_sagas; consumed by PR 2’s compensate_unresolved to walk succeeded steps in reverse and dispatch compensation.
UnresolvedStep
A step row attached to an UnresolvedSaga. Steps are returned in step_index ascending order; PR 2’s reverse-walker iterates over the succeeded entries.

Enums§

SagaOutcome
Outcome of a saga, written by terminate.

Functions§

command_discriminant_name 🔒
Discriminant name for a Command. Uses the serde tag (the cmd field of the snake_case-tagged enum) so the saga log row is easy to read in --diag sagas.
now_ms 🔒