mongodb

package
v0.0.0-...-ae4e76f Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EQUIPMENT_UNKNOWN       = "Data not found"
	EQUIPMENT_UNKNOWN_CAUSE = "DATA_NOT_FOUND"
)

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) 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,
)

Jump to

Keyboard shortcuts

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