@flexfactory/message-daemon
1.1.0 • Public • Published
message-daemon
Install
npm i --save @flexfactory/message-daemon
Usage
const MessageDaemon = require('@flexfactory/message-daemon');
const Store = require('../services/Store');
const Rabbit = require('../services/Rabbit');
const log = require('../logger');
MessageDaemon.start(
Store.knex,
Store.pg,
Rabbit.publish,
log
);
process.on('SIGTERM', () => {
process.exit();
});
Readme
Keywords
nonePackage Sidebar
Install
npm i @flexfactory/message-daemon
Weekly Downloads