-
Notifications
You must be signed in to change notification settings - Fork 0
Internal 包
omeyang edited this page Sep 17, 2026
·
1 revision
仅 XKit 项目内部使用。不在 pkg/ 下,受 Go internal/ 可见性规则保护,业务方不可直接导入。
| 包 | 用途 | 覆盖率 |
|---|---|---|
| deploy | 部署相关共享逻辑 | 100.0% |
| mqcore | MQ 通用消费循环(xkafka/xpulsar 共享,fail-fast 设计) | 100.0% |
| rediscompat | Redis 代理脚本模式探测(DetectScriptMode / Bounded) | 100.0% |
| storageopt | 存储层共享选项(连接池/超时等) | 100.0% |
- 共享逻辑放 internal/ 是为了避免重复,但又不暴露不稳定 API
- 所有 internal 包覆盖率 100%,因为其变更影响多个 pkg/,必须严格守护
- Fail-Fast 消费循环模式 - mqcore 设计
- API 清单 - 不列出 internal 内容