mongodb

package
v0.0.0-...-0e50a25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
	Client   *mongo.Client
	Context  context.Context
	Database string
}

func NewConnection

func NewConnection(ctx context.Context, mongoConfig *config.Mongo) *Mongo

func (*Mongo) Close

func (m *Mongo) Close()

func (*Mongo) Stop

func (m *Mongo) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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