command
Version:
v0.3.2
Opens a new window with list of versions in this module.
Published: Aug 5, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
saga 示例:跨服务 Saga 编排(抽卡流程)。
演示 pkg/saga:顺序正向操作 + 失败逆序补偿。流程 "扣钻石 → 发卡 → 写记录",
中途发卡失败,自动逆序补偿(退钻石)。正向/补偿都用 wallet.ApplyTx 的幂等键,
演示 saga + idempotency + wallet 三件套如何咬合(补偿重试不会退两次款)。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.