mongodb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDbConnector

type MongoDbConnector struct {
	*factory.Mongodb
}

func NewMongoDbConnector

func NewMongoDbConnector(mongo *factory.Mongodb) MongoDbConnector

func (MongoDbConnector) DeleteDataFromDB

func (m MongoDbConnector) DeleteDataFromDB(collName string, filter bson.M)

func (MongoDbConnector) GetDataFromDB

func (m MongoDbConnector) GetDataFromDB(
	collName string, filter bson.M) (
	map[string]interface{}, *models.ProblemDetails,
)

func (MongoDbConnector) GetDataFromDBWithArg

func (m MongoDbConnector) GetDataFromDBWithArg(collName string, filter bson.M, strength int) (
	map[string]interface{}, *models.ProblemDetails,
)

func (MongoDbConnector) PatchDataToDBAndNotify

func (m MongoDbConnector) PatchDataToDBAndNotify(
	collName string, ueId string, patchItem []models.PatchItem, filter bson.M,
) (origValue, newValue map[string]interface{}, err error)

Jump to

Keyboard shortcuts

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