Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close()
Close resets the state, clearing the persisted client and db objects. Initialize() must be called again.
func GetDatabase ¶
GetDatabase returns the instantiated database or errors if Initialize() has not been called
func Initialize ¶
func Initialize(o *ConnectOptions) (*mongo.Database, error)
Initialize a new connection to the database
Types ¶
Click to show internal directories.
Click to hide internal directories.