Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
Mongo is the struct containing the necessary methods to connect to a mongo database
func NewMongoConnection ¶
func NewMongoConnection() *Mongo
NewMongoConnection injects the dependencies into a new Mongo struct and returns a pointer to that struct
func (*Mongo) ConnectToDB ¶
ConnectToDB connects to a mongo database with the url passed as a paremeter
func (*Mongo) Disconnect ¶
Disconnect gracefully disconnects the client from the server
Click to show internal directories.
Click to hide internal directories.