A.1-8 外部对接统一抽象 — REST 入口 + WS/MQ 协议适配 #31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源
Doc-Code Aligner 差距:外部对接 → v0.2 目标「先做 REST 入口」
现状
bixiweave/webhook/已有 Forgejo webhook 接收 + 处理(硬编码为 Forgejo 事件格式)待做
ExternalAdapter(ABC)— 统一适配器接口(connect / disconnect / receive / send)RESTAdapter— 作为第一个实现(FastAPI/Starlette),支持:估时
大(2-3 天)
评价
太大了,不适合当前库: 这本质是一个独立的 HTTP 服务(FastAPI 应用),不是一个库特性。
建议拆分:
bixiweave保持纯逻辑库bixiweave-server仓库作为独立包(FastAPI + WS 适配)bixiu后端的 pipeline 模块中,不走独立服务当前不做。