modified the config to own the connectionPool, transport, and a few other objects

This commit is contained in:
Spencer Alger
2013-10-18 09:40:55 -07:00
parent 0f9fa9c17c
commit 8cc87637e2
88 changed files with 1948 additions and 1338 deletions

View File

@ -1,5 +1,4 @@
var _ = require('../../lib/utils'),
paramHelper = require('../../lib/param_helper'),
errors = require('../../lib/errors'),
q = require('q');
@ -11,16 +10,22 @@ var _ = require('../../lib/utils'),
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesGetSettings(params, cb) {
params = params || {};
if (typeof params === 'function') {
cb = params;
params = {};
} else {
params = params || {};
cb = typeof cb === 'function' ? cb : _.noop;
}
var request = {
ignore: params.ignore
}
, parts = {}
, query = {}
, responseOpts = {};
ignore: params.ignore,
method: 'GET'
},
parts = {},
query = {},
responseOpts = {};
request.method = 'GET';
// find the paths's params
if (typeof params.index !== 'undefined') {