Versions in this module Expand all Collapse all v1 v1.0.1 Jul 13, 2020 v1.0.0 Jul 12, 2020 Changes in this version + type MongoHelper struct + func NewMongoHelper(dbUser string, dbPassword string, dbHost string, dbPort string, ...) *MongoHelper + func (m *MongoHelper) FindDocument(collectionName string, id string) (record interface{}, err error) + func (m *MongoHelper) GetCollection(client *mongo.Client, collectionName string) (*mongo.Collection, error) + func (m *MongoHelper) GetDatabase(client *mongo.Client) (*mongo.Database, error) + func (m *MongoHelper) GetSession() (*mongo.Client, error) + func (m *MongoHelper) GetaRecord(collectionName string, condition bson.M) (record interface{}, err error) + func (m *MongoHelper) InsertDocument(collectionName string, entry interface{}) (interface{}, error) + func (m *MongoHelper) IsExistingDocument(collectionName string, condition bson.M) (found bool, err error) + func (m *MongoHelper) RemoveCollection(collectionName string) (err error) + func (m *MongoHelper) UpdateDocument(collectionName string, id string, entry interface{}) error