Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
func New ¶
New instantiates a new client wrapper. A call to Initialize is required before use. The configKey parameter dictates which key in the configuration file will be read during initialization. If configKey is empty, the default value of "mongo.url" will be used. The configuration can be in various formats, but the following is an example of a yaml file:
mongo: url: mongodb://user:password@localhost:27017
Click to show internal directories.
Click to hide internal directories.