Documentation ¶
Overview ¶
Package mongodb provides an easy-to-use way to create a new Mongodb client. Configuration is limited, in the name of simplicity. More advanced clients should be created with the Mongodb driver instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientConfig = errors.New("mongodb: bad config for client")
Functions ¶
Types ¶
type ClientOptions ¶ added in v0.24.0
type ClientOptions struct { // PoolSize is the maximum number of connections allowed // to the server. PoolSize uint64 // URI is the Mongodb connection URI. URI string // UseNewRelic allows clients to add New Relic database // segment monitoring. UseNewRelic bool }
ClientOptions provides some limited configuration for clients created with NewClient.
Click to show internal directories.
Click to hide internal directories.