Versions in this module Expand all Collapse all v1 v1.0.0 Sep 12, 2024 Changes in this version + const MongoConfPasswordDev + const MongoConfPasswordOnline + const MongoConfUrlDev + const MongoConfUrlOnline + const MongoConfUserDev + const MongoConfUserOnline + var MongoxErrInsertError = trerror.DefaultTrError("MONGO INSERT ERROR") + var MongoxErrNoData = trerror.DefaultTrError("NO DATA") + var MongoxErrNoFound = trerror.DefaultTrError("MONGO NO FOUND") + func GetContext() (ctx context.Context) + func MongoSetup(user, password, host string, timeout time.Duration) + func NewMgo(database, collection string) *mgo + func SetConnect(user, password, host string, timeout time.Duration) *mongo.Client + type Database struct + Mongo *mongo.Client + var DB *Database + type MongoConfig struct + MongoConfPassword string + MongoConfUrl string + MongoConfUser string + func GetMongoConf(env string) (conf MongoConfig)