egg-rabbit
v1.0.0
Published
基于amqplib模块提供一套关于Egg框架下操作RabbitMQ的插件,支持多消息队列实例,支持同步操作消息队列,在满足amqplib原有方法基础上,较好的解决Egg项目使用RabbitMQ消息队列痛点。
Downloads
2
Maintainers
Readme
egg-rabbit
Install
$ npm i egg-rabbit --save
Usage
// {app_root}/config/plugin.js
exports.rabbit = {
enable: true,
package: 'egg-rabbit',
};
Configuration
- default client config
// {app_root}/config/config.default.js
exports.rabbit = {
};
- only one rabbitMQ client
// {app_root}/config/config.default.js
exports.rabbit = {
};
- more rabbitMQ clients
// {app_root}/config/config.default.js
exports.rabbit = {
};
- other optional configuration
// {app_root}/config/config.default.js
exports.rabbit = {
};
see config/config.default.js for more detail. 注意:
Example
Questions & Suggestions
Please open an issue here.