2010-09-29 12:18:46 +08:00
|
|
|
var EventEmitter = require('events').EventEmitter;
|
2010-11-15 13:04:41 +08:00
|
|
|
var Client = require(__dirname+'/client');
|
2010-12-11 07:32:34 +08:00
|
|
|
var defaults = require(__dirname + '/defaults');
|
2011-03-04 02:21:43 +08:00
|
|
|
var pool = require(__dirname + "/client-pool").init(Client);
|
2010-09-29 12:18:46 +08:00
|
|
|
module.exports = {
|
2010-11-15 14:10:21 +08:00
|
|
|
Client: Client,
|
2010-11-15 13:04:41 +08:00
|
|
|
Connection: require(__dirname + '/connection'),
|
2011-03-04 02:21:43 +08:00
|
|
|
connect: pool.connect,
|
|
|
|
end: pool.end,
|
2010-12-11 07:32:34 +08:00
|
|
|
defaults: defaults
|
2010-11-15 14:10:21 +08:00
|
|
|
}
|