mongo_client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 MongoClient

type MongoClient interface {
	Disconnect(ctx context.Context) error
	FindCollection(name string) *mongo.Collection
}

func NewMongoClient

func NewMongoClient(ctx context.Context, dbName *string) (MongoClient, error)

type MongoClientImpl

type MongoClientImpl struct {
	Driver *mongo.Client
	// contains filtered or unexported fields
}

func (*MongoClientImpl) Disconnect

func (c *MongoClientImpl) Disconnect(ctx context.Context) error

func (*MongoClientImpl) FindCollection

func (c *MongoClientImpl) FindCollection(name string) *mongo.Collection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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