存储 MogoDB 的连接配置
| 35 | |
| 36 | // 存储 MogoDB 的连接配置 |
| 37 | type MongoConfig struct { |
| 38 | Host string // 连接地址 |
| 39 | DB string // 数据库名 |
| 40 | Coll string // 集合名 |
| 41 | } |
| 42 | |
| 43 | // GetMongoClient 返回全局MongoDB客户端实例 |
| 44 | func GetMongoClient() *mongo.Client { |
nothing calls this directly
no outgoing calls
no test coverage detected