Gitforxuyang / egg-delayqueue

egg延时队列

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

egg-delayqueue

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

Install

$ npm i egg-delayqueue --save

Usage

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

Configuration

// {app_root}/config/config.default.js
client: {
    // url: 'amqp://localhost',
    connectOptions: {
      protocol: 'amqp',
      hostname: 'localhost',
      port: 5672,
      username: 'guest',
      password: 'guest',
      locale: 'en_US',
      frameMax: 0,
      heartbeat: 0,
      vhost: '/',
    },
    // socketOptions: {
    //   cert: certificateAsBuffer, // client cert
    //   key: privateKeyAsBuffer, // client key
    //   passphrase: 'MySecretPassword', // passphrase for key
    //   ca: [caCertAsBuffer], // array of trusted CA certs
    // },
  },;

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT

About

egg延时队列

License:MIT License


Languages

Language:JavaScript 100.0%