Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoConnection ¶
type MongoConnection struct {
// contains filtered or unexported fields
}
func NewMongoConnection ¶
func NewMongoConnection(params *database.DBConnectionParams) (*MongoConnection, error)
func (*MongoConnection) GetDB ¶
func (c *MongoConnection) GetDB() *mongo.Client
func (*MongoConnection) GetMongoDoc ¶
func (c *MongoConnection) GetMongoDoc(collection *mongo.Collection, docId string) (bson.M, error)
Click to show internal directories.
Click to hide internal directories.