database

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoClient

func NewMongoClient(mongoURI string) (*mongo.Client, error)

NewMongoClient creates a new MongoDB client.

Types

type MongoConnection added in v0.0.3

type MongoConnection struct {
	Collection *mongo.Collection
	// contains filtered or unexported fields
}

MongoConnection is a MongoDB connection.

func NewMongoConnection added in v0.0.3

func NewMongoConnection(client *mongo.Client, database string, collection string) *MongoConnection

NewMongoConnection creates a new MongoDB connection.

Jump to

Keyboard shortcuts

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