Documentation ¶
Index ¶
- func ClientAddrs(addrs []string) func(*Client)
- func ClientDatabase(database string) func(*Client)
- func ClientPassword(password string) func(*Client)
- func ClientPoolLimit(limit int) func(*Client)
- func ClientReplicaSet(replicaSet string) func(*Client)
- func ClientTimeout(timeout time.Duration) func(*Client)
- func ClientUsername(username string) func(*Client)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientAddrs ¶
ClientAddrs set the address to connect to MongoDB.
func ClientDatabase ¶
ClientDatabase eset the database name to use.
func ClientPassword ¶
ClientPassword set the password to authenticate.
func ClientPoolLimit ¶
ClientPoolLimit set the limit of connections per server.
func ClientReplicaSet ¶
ClientReplicaSet set the replicaSet.
func ClientTimeout ¶
ClientTimeout set the timeout during operations.
func ClientUsername ¶
ClientUsername set the username to authenticate.
Types ¶
Click to show internal directories.
Click to hide internal directories.