db

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	Conf *config.MongoConfig
	// contains filtered or unexported fields
}

func NewMongoDB

func NewMongoDB(log *slog.Logger, conf *config.MongoConfig) *MongoDB

func (*MongoDB) Close

func (db *MongoDB) Close()

func (*MongoDB) GetCollection

func (db *MongoDB) GetCollection(collectionName string) *mongo.Collection

func (*MongoDB) GetCollectionMessages

func (db *MongoDB) GetCollectionMessages() *mongo.Collection

func (*MongoDB) GetDatabase

func (db *MongoDB) GetDatabase() *mongo.Database

func (*MongoDB) Init

func (db *MongoDB) Init() error

Jump to

Keyboard shortcuts

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