database

package
v0.0.0-...-a69a74b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 Database

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

func Connect

func Connect(ctx context.Context, address string) (*Database, error)

func (*Database) Collection

func (d *Database) Collection(dbName string, collectionName string) *mongo.Collection

func (*Database) Disconnect

func (d *Database) Disconnect() error

Jump to

Keyboard shortcuts

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