Categorygithub.com/soedev/soego-component/emongo
modulepackage
1.0.0
Repository: https://github.com/soedev/soego-component.git
Documentation: pkg.go.dev

# README

emongo 组件使用指南

简介

mongo-driver 进行了轻量封装,并提供了以下功能:

  • 规范了标准配置格式,提供了统一的 Load().Build() 方法。
  • 支持自定义拦截器
  • 提供了默认的 Debug 拦截器,开启 Debug 后可输出 Request、Response 至终端。
  • 提供了默认的 Metric 拦截器,开启后可采集 Prometheus 指标数据

快速上手

使用样例可参考 examples

# Packages

No description provided by the author

# Functions

No description provided by the author
DefaultConfig 返回默认配置.
DefaultContainer 返回默认Container.
No description provided by the author
Load 载入配置,初始化Container.
No description provided by the author
WithDebug 注入Debug配置.
WithDSN 注入DSN配置.
WithInterceptor 注入拦截器.
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
Component client (cmdable and config).
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author