boilerplate for filesystem-backed storage

pull/1/head
ansuz 8 years ago
parent 68b35ace38
commit 217e664d4c

@ -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);
},
});
};
Loading…
Cancel
Save