mongo

package
v0.0.0-...-e796f14 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConfiguer

type MongoConfiguer interface {
	URI() string
	DBName() string
}

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)

Jump to

Keyboard shortcuts

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