mongodbhandler

package
v0.0.0-...-be30c67 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMongodbHandler

type IMongodbHandler interface {
	GetDatabase(databaseName string) *mongo.Database
	GetCorrection(dataModel entities.ICRUDDataModel) *mongo.Collection
	GetCorrectionDB(database *mongo.Database, dataModel entities.ICRUDDataModel) *mongo.Collection
	GetContext() context.Context
	Close() error
}

func MongodbHandler

func MongodbHandler(atlasUri string, databaseName string) IMongodbHandler

func MongodbHandlerDefaultConfig

func MongodbHandlerDefaultConfig() IMongodbHandler

Jump to

Keyboard shortcuts

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