Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMongoClientOptions ¶
func DefaultMongoClientOptions(mongoCfg config.Connection) *options.ClientOptions
DefaultMongoClientOptions constructs connection params to the pointer of options.ClientOptions. It can also chain call to overwrite default value.
func NewMongoConnection ¶
func NewMongoConnection(mongoCfg config.Connection, ctx context.Context, opts ...*options.ClientOptions) (*mongo.Client, error)
NewMongoConnection initializes connection params with configurations.
Types ¶
Click to show internal directories.
Click to hide internal directories.