nestx-amqp:提供AMQP连接作为NestJS模块。内部使用amqp-connection-manager.

nestx-amqp提供AMQP连接作为NestJS模块。内部使用AmqpConnectionManager创建异步连接。提供@PublishQueue和@SubscribeQueue装饰器简化方法装饰。安装yarn add nestx-amqp,注册模块异步import { Module } from '@nestjs/common'; import { AmqpModule } from 'nestx-amqp'; @Module({ imports: [AmqpModule.forRootAsync({ useFactory: () => ({ urls: ['amqp://guest:guest@l."], }) })] })
zip
nestx-amqp-master.zip 预估大小:39个文件
folder
nestx-amqp-master 文件夹
file
.eslintrc.json 762B
file
.gitignore 4KB
file
package.json 3KB
folder
src 文件夹
file
amqp.constants.ts 1KB
folder
decorators 文件夹
file
publish-exchange.ts 1KB
file
inject-connection.ts 409B
file
publish-queue.ts 1KB
file
subscribe-queue.ts 833B
folder
services 文件夹
file
consumer.ts 2KB
file
exchange-producer.ts 1KB
file
queue-producer.ts 772B
folder
interfaces 文件夹
file
common.ts 57B
file
queue.ts 729B
file
exchange.ts 731B
file
amqp.options.ts 917B
folder
__tests__ 文件夹
file
amqp.module.test.ts 1KB
folder
__fixtures__ 文件夹
file
shared.utils.ts 87B
file
amqp.test.fixtures.ts 151B
file
amqp.multi-connection.test.ts 3KB
file
amqp.decorators.test.ts 10KB
file
amqp.explorer.ts 6KB
file
index.ts 520B
file
amqp.module.ts 2KB
folder
shared 文件夹
file
token.util.ts 670B
file
amqp.container.ts 1KB
file
amqp.providers.ts 2KB
file
LICENSE 1KB
file
CHANGELOG.md 4KB
file
tsconfig.json 513B
file
docker-compose.yml 118B
folder
.github 文件夹
folder
workflows 文件夹
file
ci.yml 670B
file
publish.yml 726B
file
renovate.json 263B
file
README.md 6KB
file
index.ts 23B
file
.editorconfig 235B
file
.prettierrc 141B
file
yarn.lock 419KB
file
nest-cli.json 64B
zip 文件大小:190.83KB