Created
February 13, 2015 00:25
-
-
Save cjlien42/baf3f6e5b7619e686f32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function PonyWrapper(config) { | |
this.backend = new this.backends[config.backend](config); | |
return this; | |
} | |
PonyWrapper.prototype.backends = require("./backends"); | |
PonyWrapper.prototype.send = function() { | |
// Process arguments | |
}; | |
PonyWrapper.prototype.sendBulk = function(messages, callback) { | |
messages.push(callback); | |
this.send.apply(null, messages); | |
}; | |
module.exports = PonyWrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment