docs: consolidate runnable examples and publish v0.1.1 guides

This commit is contained in:
2026-09-24 21:27:25 +08:00
parent e29dec717f
commit 81e56bd633
124 changed files with 1430 additions and 281 deletions

View File

@@ -8,3 +8,15 @@
- [测试报告](../../../docs/reports/outbox-http-integration.md)
以业务自己的数据库存储待发命令,调用 `EnqueueTx` 加入已有事务,后台运行 `Run` 或 `SendOnce`。本包确认的是平台受理,任务执行完成通过 Worker 和可靠结果订阅衔接。
## 安装
```sh
go get git.yuntuo.hk/k2safe/orbit/adapters/outbox/mysql@v0.1.1
```
```go
import outbox "git.yuntuo.hk/k2safe/orbit/adapters/outbox/mysql"
```
Git 标签为 `adapters/outbox/mysql/v0.1.1`,无需本地 replace。先将 `SchemaSQL()` 纳入自己的业务迁移,再构造 `Store`;完整事务和运行器代码见上方接口手册。