database

package
v0.0.0-...-53a2e65 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(conf *configuration.Configuration) *Database

func (*Database) Connect

func (d *Database) Connect() error

func (*Database) Disconnect

func (d *Database) Disconnect()

func (*Database) GetCollection

func (d *Database) GetCollection(name string) *mongo.Collection

Jump to

Keyboard shortcuts

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