Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
type MongoConfig ¶
type MongoConfig struct { Type MongoType `json:"type"` URI string `json:"uri"` DBName string `json:"dbName"` Standalone struct{} `json:"standalone"` ReplicaSet struct { ReplicaName string `json:"replicaName"` } `json:"replicaSet"` ShardCluster struct{} `json:"shardCluster"` MaxPoolSize uint64 `json:"maxPoolSize"` MinPoolSize uint64 `json:"minPoolSize"` MaxConnIdleTime time.Duration `json:"maxConnIdleTime"` SocketTimeout time.Duration `json:"socketTimeout"` }
func GetDefaultMongoConfig ¶
func GetDefaultMongoConfig() *MongoConfig
func GetMongoConfig ¶
func GetMongoConfig(key string) *MongoConfig
func (*MongoConfig) NewClient ¶
func (mongoConfig *MongoConfig) NewClient() *MongoClient
Click to show internal directories.
Click to hide internal directories.