Documentation ¶
Index ¶
- Variables
- func CreateCollectionItem(collectionName string, d bson.D) (result *mongo.InsertOneResult, err error)
- func DeleteCollectionItemById(collectionName string, c echo.Context) (result bson.M, err error)
- func GetAllCollectionItems(collectionName string, c echo.Context) ([]bson.M, error)
- func GetCollectionItemById(collectionName string, c echo.Context) (result bson.M, err error)
- func MongoGetDbConnection(configuration *models.Configuration) *mongo.Database
- func UpdateCollectionItemById(collectionName string, c echo.Context, id bson.D, data bson.D) (result *mongo.UpdateResult, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoDB *mongo.Database
Functions ¶
func CreateCollectionItem ¶
func GetAllCollectionItems ¶
func GetCollectionItemById ¶
func MongoGetDbConnection ¶
func MongoGetDbConnection(configuration *models.Configuration) *mongo.Database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.