Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disconnect ¶ added in v0.0.2
func Disconnect(connection *Connection)
Disconnect closes the MongoDB client connection
Types ¶
type Connection ¶ added in v0.0.6
type Connection struct { Config *Config Client *mongo.Client Ctx context.Context Cancel context.CancelFunc }
func Connect ¶
func Connect(config *Config) (connection *Connection, err error)
Connect returns a new MongoDB client
Click to show internal directories.
Click to hide internal directories.