Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongoClientManagerInit ¶
func MongoClientManagerInit(configs []MongoClientConfig) error
Types ¶
type MongoClient ¶
func NewMongoClient ¶
func NewMongoClient(c MongoClientConfig) (*MongoClient, error)
type MongoClientConfig ¶
Mongo client config
type MongoClientManager ¶
type MongoClientManager struct {
// contains filtered or unexported fields
}
func GetMongoClientManager ¶
func GetMongoClientManager() *MongoClientManager
func (*MongoClientManager) GetMongoClient ¶
func (r *MongoClientManager) GetMongoClient(name string) *mongo.Client
func (*MongoClientManager) GetMongoDatabaseClient ¶
func (r *MongoClientManager) GetMongoDatabaseClient(name string) *mongo.Database
Click to show internal directories.
Click to hide internal directories.