mongodb

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(name string) *mongo.Database

func (*MongoConnection) DbColl

func (mc *MongoConnection) DbColl(db, coll string) *mongo.Collection

func (*MongoConnection) Disconnect

func (mc *MongoConnection) Disconnect(ctx context.Context)

func (*MongoConnection) IsAlive

func (mc *MongoConnection) IsAlive() bool

func (*MongoConnection) ResumeTokenColl

func (mc *MongoConnection) ResumeTokenColl() *mongo.Collection

TODO

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL