database

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 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 MongoDB

type MongoDB struct {
	// contains filtered or unexported fields
}

func NewMongoDB

func NewMongoDB(uri string, dbName string, logger *zap.Logger) (*MongoDB, error)

func (*MongoDB) Collection

func (m *MongoDB) Collection(name string) *mongo.Collection

func (*MongoDB) Disconnect

func (m *MongoDB) Disconnect(ctx context.Context) error

Jump to

Keyboard shortcuts

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