mongo

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 4 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() *MongoConnection

func (*MongoConnection) Connect

func (mc *MongoConnection) Connect(ctx context.Context, cfg MongoConfiguer)

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