Categorygithub.com/QFO6/rev-mongo
modulepackage
0.1.0
Repository: https://github.com/qfo6/rev-mongo.git
Documentation: pkg.go.dev

# README

Wrapped MongoDB Operator

Installation

Install module

# specific version
go get go get github.com/QFO6/[email protected]
# latest version of a branch
go get github.com/QFO6/rev-mongo@<branch_name>

# Functions

Collection conduct mgo.Collection.
MgoDBConnect do mgo connection.
App Init setup mgo connection.
MgoControllerInit should be put in controller init function.
New create a *Do with pre-defined DBName.
NewConnect return mgo.Session for manual input mongodb information.
NewDo initiate with input model and mgo session.
No description provided by the author
New with C, with collection Name for collection name diff with model name.

# Constants

No description provided by the author
soft delete.
hard delete.
No description provided by the author
No description provided by the author

# Variables

learn from leanote, put all db actions in one file.
learn from leanote, put all db actions in one file.
ObjectIDBinder do binding.
learn from leanote, put all db actions in one file.

# Structs

BaseModel to be emmbered to other struct as audit trail perpurse.
ChangeLog.
Do wrap all common functions.
MgoController including the mgo session.
Utils for extra config required for different purpose.