You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/mongos.js
+19-18Lines changed: 19 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ var EventEmitter = require('events').EventEmitter
14
14
/**
15
15
* @fileOverview The **Mongos** class is a class that represents a Mongos Proxy topology and is
16
16
* used to construct connections.
17
-
*
17
+
*
18
18
* **Mongos Should not be used, use MongoClient.connect**
19
19
* @example
20
20
* var Db = require('mongodb').Db,
@@ -39,17 +39,17 @@ var EventEmitter = require('events').EventEmitter
39
39
* @param {booelan} [options.ha=true] Turn on high availability monitoring.
40
40
* @param {number} [options.haInterval=5000] Time between each replicaset status check.
41
41
* @param {number} [options.poolSize=5] Number of connections in the connection pool for each server instance, set to 5 as default for legacy reasons.
42
-
* @param {boolean} [options.ssl=false] Use ssl connection (needs to have a mongod server with ssl support)
42
+
* @param {boolean} [options.ssl=false] Use ssl connection (needs to have a mongod server with ssl support)
43
43
* @param {object} [options.sslValidate=true] Validate mongod server certificate against ca (needs to have a mongod server with ssl support, 2.4 or higher)
44
44
* @param {array} [options.sslCA=null] Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
45
45
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
46
46
* @param {(Buffer|string)} [options.sslKey=null] String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
47
47
* @param {(Buffer|string)} [options.sslPass=null] String or buffer containing the certificate password (needs to have a mongod server with ssl support, 2.4 or higher)
Copy file name to clipboardExpand all lines: lib/replset.js
+34-33Lines changed: 34 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ var EventEmitter = require('events').EventEmitter
19
19
/**
20
20
* @fileOverview The **ReplSet** class is a class that represents a Replicaset topology and is
21
21
* used to construct connections.
22
-
*
22
+
*
23
23
* **ReplSet Should not be used, use MongoClient.connect**
24
24
* @example
25
25
* var Db = require('mongodb').Db,
@@ -44,20 +44,20 @@ var EventEmitter = require('events').EventEmitter
44
44
* @param {booelan} [options.ha=true] Turn on high availability monitoring.
45
45
* @param {number} [options.haInterval=5000] Time between each replicaset status check.
46
46
* @param {string} options.replicaSet The name of the replicaset to connect to.
47
-
* @param {number} [options.secondaryAcceptableLatencyMS=15] Sets the range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms)
47
+
* @param {number} [options.secondaryAcceptableLatencyMS=15] Sets the range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms)
48
48
* @param {boolean} [options.connectWithNoPrimary=false] Sets if the driver should connect even if no primary is available
49
49
* @param {number} [options.poolSize=5] Number of connections in the connection pool for each server instance, set to 5 as default for legacy reasons.
50
-
* @param {boolean} [options.ssl=false] Use ssl connection (needs to have a mongod server with ssl support)
50
+
* @param {boolean} [options.ssl=false] Use ssl connection (needs to have a mongod server with ssl support)
51
51
* @param {object} [options.sslValidate=true] Validate mongod server certificate against ca (needs to have a mongod server with ssl support, 2.4 or higher)
52
52
* @param {array} [options.sslCA=null] Array of valid certificates either as Buffers or Strings (needs to have a mongod server with ssl support, 2.4 or higher)
53
53
* @param {(Buffer|string)} [options.sslCert=null] String or buffer containing the certificate we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
54
54
* @param {(Buffer|string)} [options.sslKey=null] String or buffer containing the certificate private key we wish to present (needs to have a mongod server with ssl support, 2.4 or higher)
55
55
* @param {(Buffer|string)} [options.sslPass=null] String or buffer containing the certificate password (needs to have a mongod server with ssl support, 2.4 or higher)
0 commit comments