├── .github └── workflows │ ├── CD.yml │ └── CI.yml ├── .gitignore ├── .npmignore ├── .npmrc ├── .prettierrc ├── LICENCE.md ├── README.md ├── codecov.yml ├── docker-compose.yml ├── docker ├── Dockerfile └── rabbitmq │ └── enabled_plugins ├── examples ├── server1 │ ├── .gitignore │ ├── .prettierrc │ ├── README.md │ ├── nest-cli.json │ ├── package.json │ ├── src │ │ ├── app.controller.spec.ts │ │ ├── app.controller.ts │ │ ├── app.module.ts │ │ ├── app.service.ts │ │ ├── events │ │ │ ├── default.event.ts │ │ │ └── rabbit.event.ts │ │ ├── handlers │ │ │ ├── default.event.handler.ts │ │ │ └── rabbit.event.handler.ts │ │ ├── main.ts │ │ └── publishers │ │ │ └── rabbit.publisher.ts │ ├── test │ │ ├── app.e2e-spec.ts │ │ └── jest-e2e.json │ ├── tsconfig.build.json │ ├── tsconfig.json │ └── tslint.json └── server2 │ ├── .gitignore │ ├── .prettierrc │ ├── README.md │ ├── nest-cli.json │ ├── package.json │ ├── src │ ├── app.controller.spec.ts │ ├── app.module.ts │ ├── app.service.ts │ ├── events │ │ └── rabbit.event.ts │ ├── handlers │ │ └── rabbit.event.handler.ts │ └── main.ts │ ├── test │ ├── app.e2e-spec.ts │ └── jest-e2e.json │ ├── tsconfig.build.json │ ├── tsconfig.json │ └── tslint.json ├── index.ts ├── nest-cli.json ├── package.json ├── src ├── constants │ └── transport.event-bus.constants.ts ├── decorators │ ├── transport.event.event-bus.decarator.ts │ ├── transport.exclude-def.decorator.ts │ ├── transport.publisher.event-bus.decorator.ts │ └── transport.type.event-bus.decorator.ts ├── index.ts ├── interfaces │ ├── transport.data.event-bus.interface.ts │ └── transport.publisher.event-bus.interface.ts ├── transport.event-bus.module.ts ├── transport.event-bus.publisher.ts └── transport.event-bus.service.ts ├── test ├── int │ ├── jest-int.json │ └── transport-eventbus │ │ ├── commands │ │ ├── try.aggregate-root.command.ts │ │ └── try.saga.command.ts │ │ ├── eventbus.int.test.ts │ │ ├── events │ │ └── test.events.ts │ │ ├── handlers │ │ ├── default.event.handler.ts │ │ ├── try.aggregate-root.command.handler.ts │ │ ├── try.aggregate-root.event.handler.ts │ │ ├── try.saga.command.handler.ts │ │ └── try.saga.handler.ts │ │ ├── model │ │ └── test.model.ts │ │ ├── publishers │ │ └── rabbit.publisher.ts │ │ ├── service │ │ └── test.service.ts │ │ └── storage │ │ └── storage.ts └── jest.json ├── tsconfig.build.json ├── tsconfig.json └── tslint.json /.github/workflows/CD.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/.github/workflows/CD.yml -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENCE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/LICENCE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/README.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | token: bd7b63ad-24ff-47c5-811a-f64ed7421ded -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/rabbitmq/enabled_plugins: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/docker/rabbitmq/enabled_plugins -------------------------------------------------------------------------------- /examples/server1/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/.gitignore -------------------------------------------------------------------------------- /examples/server1/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/.prettierrc -------------------------------------------------------------------------------- /examples/server1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/README.md -------------------------------------------------------------------------------- /examples/server1/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/nest-cli.json -------------------------------------------------------------------------------- /examples/server1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/package.json -------------------------------------------------------------------------------- /examples/server1/src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/app.controller.spec.ts -------------------------------------------------------------------------------- /examples/server1/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/app.controller.ts -------------------------------------------------------------------------------- /examples/server1/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/app.module.ts -------------------------------------------------------------------------------- /examples/server1/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/app.service.ts -------------------------------------------------------------------------------- /examples/server1/src/events/default.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/events/default.event.ts -------------------------------------------------------------------------------- /examples/server1/src/events/rabbit.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/events/rabbit.event.ts -------------------------------------------------------------------------------- /examples/server1/src/handlers/default.event.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/handlers/default.event.handler.ts -------------------------------------------------------------------------------- /examples/server1/src/handlers/rabbit.event.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/handlers/rabbit.event.handler.ts -------------------------------------------------------------------------------- /examples/server1/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/main.ts -------------------------------------------------------------------------------- /examples/server1/src/publishers/rabbit.publisher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/src/publishers/rabbit.publisher.ts -------------------------------------------------------------------------------- /examples/server1/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /examples/server1/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/test/jest-e2e.json -------------------------------------------------------------------------------- /examples/server1/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/tsconfig.build.json -------------------------------------------------------------------------------- /examples/server1/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/tsconfig.json -------------------------------------------------------------------------------- /examples/server1/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server1/tslint.json -------------------------------------------------------------------------------- /examples/server2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/.gitignore -------------------------------------------------------------------------------- /examples/server2/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/.prettierrc -------------------------------------------------------------------------------- /examples/server2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/README.md -------------------------------------------------------------------------------- /examples/server2/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/nest-cli.json -------------------------------------------------------------------------------- /examples/server2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/package.json -------------------------------------------------------------------------------- /examples/server2/src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/app.controller.spec.ts -------------------------------------------------------------------------------- /examples/server2/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/app.module.ts -------------------------------------------------------------------------------- /examples/server2/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/app.service.ts -------------------------------------------------------------------------------- /examples/server2/src/events/rabbit.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/events/rabbit.event.ts -------------------------------------------------------------------------------- /examples/server2/src/handlers/rabbit.event.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/handlers/rabbit.event.handler.ts -------------------------------------------------------------------------------- /examples/server2/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/src/main.ts -------------------------------------------------------------------------------- /examples/server2/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /examples/server2/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/test/jest-e2e.json -------------------------------------------------------------------------------- /examples/server2/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/tsconfig.build.json -------------------------------------------------------------------------------- /examples/server2/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/tsconfig.json -------------------------------------------------------------------------------- /examples/server2/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/examples/server2/tslint.json -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export * from './dist'; 2 | -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/package.json -------------------------------------------------------------------------------- /src/constants/transport.event-bus.constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/constants/transport.event-bus.constants.ts -------------------------------------------------------------------------------- /src/decorators/transport.event.event-bus.decarator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/decorators/transport.event.event-bus.decarator.ts -------------------------------------------------------------------------------- /src/decorators/transport.exclude-def.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/decorators/transport.exclude-def.decorator.ts -------------------------------------------------------------------------------- /src/decorators/transport.publisher.event-bus.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/decorators/transport.publisher.event-bus.decorator.ts -------------------------------------------------------------------------------- /src/decorators/transport.type.event-bus.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/decorators/transport.type.event-bus.decorator.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/transport.data.event-bus.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/interfaces/transport.data.event-bus.interface.ts -------------------------------------------------------------------------------- /src/interfaces/transport.publisher.event-bus.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/interfaces/transport.publisher.event-bus.interface.ts -------------------------------------------------------------------------------- /src/transport.event-bus.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/transport.event-bus.module.ts -------------------------------------------------------------------------------- /src/transport.event-bus.publisher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/transport.event-bus.publisher.ts -------------------------------------------------------------------------------- /src/transport.event-bus.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/src/transport.event-bus.service.ts -------------------------------------------------------------------------------- /test/int/jest-int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/jest-int.json -------------------------------------------------------------------------------- /test/int/transport-eventbus/commands/try.aggregate-root.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/commands/try.aggregate-root.command.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/commands/try.saga.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/commands/try.saga.command.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/eventbus.int.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/eventbus.int.test.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/events/test.events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/events/test.events.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/handlers/default.event.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/handlers/default.event.handler.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/handlers/try.aggregate-root.command.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/handlers/try.aggregate-root.command.handler.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/handlers/try.aggregate-root.event.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/handlers/try.aggregate-root.event.handler.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/handlers/try.saga.command.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/handlers/try.saga.command.handler.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/handlers/try.saga.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/handlers/try.saga.handler.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/model/test.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/model/test.model.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/publishers/rabbit.publisher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/publishers/rabbit.publisher.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/service/test.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/service/test.service.ts -------------------------------------------------------------------------------- /test/int/transport-eventbus/storage/storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/int/transport-eventbus/storage/storage.ts -------------------------------------------------------------------------------- /test/jest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/test/jest.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergey-telpuk/nestjs-transport-eventbus/HEAD/tslint.json --------------------------------------------------------------------------------