Skip to content

internal storageopt

omeyang edited this page Sep 17, 2026 · 1 revision

internal/storageopt

稳定性:Internal · 覆盖率:100.0% · 源码:internal/storageopt

存储层共享选项。xcache / xetcd / xmongo / xclickhouse 共享的连接池/超时等参数。

用途

  • 避免在多个存储包重复定义相同的 Option 类型
  • 统一选项命名

设计要点

  • 覆盖率 100%:跨包共享,变更影响大
  • 内部统一选项:外部 API 上各 storage 包仍各自暴露自家 Option

相关

Clone this wiki locally