Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoConfiguer ¶
type MongoConnection ¶
type MongoConnection struct {
// contains filtered or unexported fields
}
func NewMongoConnection ¶
func NewMongoConnection(cfg *configs.MongoConfig) *MongoConnection
func (*MongoConnection) Connect ¶
func (mc *MongoConnection) Connect(ctx context.Context)
func (*MongoConnection) DB ¶
func (mc *MongoConnection) DB() *mongo.Database
func (*MongoConnection) Disconnect ¶
func (mc *MongoConnection) Disconnect(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.