database

package
v0.0.0-...-f14b2f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECTION_STRING = "mongodb://localhost:27017/"
	DB_NAME           = "friday"
)
View Source
const MONGO_QUERY_TIMEOUT = 20 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoInstance

type MongoInstance struct {
	Client *mongo.Client
	Db     *mongo.Database
}

func GetMongoInstance

func GetMongoInstance() (*MongoInstance, error)

func New

func New() (mongoInstance *MongoInstance, err error)

type MongoRepository

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

Jump to

Keyboard shortcuts

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