repository

package
v0.0.0-...-043f3ae Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoDB *mongo.Database

Functions

func CreateCollectionItem

func CreateCollectionItem(collectionName string, d bson.D) (result *mongo.InsertOneResult, err error)

func DeleteCollectionItemById

func DeleteCollectionItemById(collectionName string, c echo.Context) (result bson.M, err error)

func GetAllCollectionItems

func GetAllCollectionItems(collectionName string, c echo.Context) ([]bson.M, error)

func GetCollectionItemById

func GetCollectionItemById(collectionName string, c echo.Context) (result bson.M, err error)

func MongoGetDbConnection

func MongoGetDbConnection(configuration *models.Configuration) *mongo.Database

func UpdateCollectionItemById

func UpdateCollectionItemById(collectionName string, c echo.Context, id bson.D, data bson.D) (result *mongo.UpdateResult, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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