0.0.13 • Published 6 years ago

egg-naf-amqp v0.0.13

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

egg-naf-amqp

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-naf-amqp --save

Usage

// {app_root}/config/plugin.js
exports.amqp = {
  enable: true,
  package: 'egg-naf-amqp',
};

Configuration

// {app_root}/config/config.default.js
exports.amqp = {
  app: true,
  agent: false,

// Single amqp
  // client: {
  //   protocol: 'amqp',
  //   hostname: 'localhost',
  //   port: 5672,
  //   username: 'guest',
  //   password: 'guest',
  //   vhost: '/',
  // },

  // Multi amqp
  // clients: {
  //   instance1: {
  //     protocol: 'amqp',
  //     hostname: 'localhost',
  //     port: 5672,
  //     username: 'guest',
  //     password: 'guest',
  //     vhost: '/',
  //   },
  //   instance2: {
  //     protocol: 'amqp',
  //     hostname: 'localhost',
  //     port: 5672,
  //     username: 'guest',
  //     password: 'guest',
  //     vhost: '/',
  //   },
  // },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago