Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
Mongo Client component, configuration: components:
mongo: dsn: "mongodb://host1:port1/[db][?options]" connectTimeout: "1s" readTimeout: "10s" writeTimeout: "10s"
see Dial() for query options, default: replicaSet= connect=replicaSet maxPoolSize=100 minPoolSize=1 maxIdleTimeMS=300000 ssl=false w=1 j=false wtimeoutMS=10000 readPreference=secondaryPreferred
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetSession ¶
func (*Client) SetConnectTimeout ¶
func (*Client) SetReadTimeout ¶
func (*Client) SetWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.