MCPcopy Create free account
hub / github.com/bodhiye/paste / MongoConfig

Struct MongoConfig

server/db/paste.go:37–41  ·  view source on GitHub ↗

存储 MogoDB 的连接配置

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected