mongoose-amqplib-plugin
Publish Mongoose models over AMQP.
Installation
npm install --save mongoose-amqplib-plugin
Usage
var amqpPlugin = ; // Create an instance of the plugin, and override all of// the possible options.Schema1; // This time, we'll just use the default values for the// options. These are://// exchange: 'model.events',// routingKey: '',// options: undefined//Schema2; // Of course, maybe you don't like those default options.// Fine -- just change them.amqpPlugindefaultOptions = exchange: "my.better.name" options: persistent: true ;