Documentation ¶
Index ¶
- type DBConfig
- type MongoConnection
- func (conn *MongoConnection) CloseMongoDB() (err error)
- func (conn *MongoConnection) DBAsync(wg *sync.WaitGroup, f func(db *mongo.Database, errChan chan error) error) (err error)
- func (conn *MongoConnection) GetMongoDB() (*mongo.Database, error)
- func (conn *MongoConnection) NewMongoDB() (*mongo.Database, error)
- func (conn *MongoConnection) PutMongoDB(db *mongo.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoConnection ¶
type MongoConnection struct { Errors chan error // contains filtered or unexported fields }
func NewMongoConnection ¶
func NewMongoConnection(dbConfig DBConfig) *MongoConnection
func (*MongoConnection) CloseMongoDB ¶
func (conn *MongoConnection) CloseMongoDB() (err error)
func (*MongoConnection) GetMongoDB ¶
func (conn *MongoConnection) GetMongoDB() (*mongo.Database, error)
func (*MongoConnection) NewMongoDB ¶
func (conn *MongoConnection) NewMongoDB() (*mongo.Database, error)
func (*MongoConnection) PutMongoDB ¶
func (conn *MongoConnection) PutMongoDB(db *mongo.Database) error
Click to show internal directories.
Click to hide internal directories.