diff --git a/storage/file.js b/storage/file.js new file mode 100644 index 000000000..0c6b6734c --- /dev/null +++ b/storage/file.js @@ -0,0 +1,22 @@ +var Fs = require("fs"); + +var insert = function (env, channel, content, cb) { + +}; + +var getMessages = function (env, channelName, msgHandler, cb) { + +}; + +module.exports.create = function (conf, cb) { + var env = {}; + + cb({ + message: function (channelName, content, cb) { + insert(env, channelName, content, cb); + }, + getMessages: function (channelName, msgHandler, cb) { + getMessages(env, channelName, msgHandler, cb); + }, + }); +};