-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
41 lines (40 loc) · 1.24 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const CommandFactory = require('./src/common/commands/factory');
const PubSubAmqpMessageBus = require('./src/pub-sub/amqp/message-bus');
const PubSubMessageBusFactory = require('./src/pub-sub/factory');
const PubSubSnsMessageBus = require('./src/pub-sub/aws/sns/message-bus');
const QueueAmqpMessageBus = require('./src/queue/amqp/message-bus');
const QueueAwsSqsMessageBus = require('./src/queue/aws/message-bus');
const QueueMessageBusFactory = require('./src/queue/factory');
const TestingMessageBus = require('./src/pub-sub/testing-message-bus');
const LambdaHandler = require('./src/queue/aws/lambda/handler');
const CompressEngine = require('./src/util/compress-engine');
const CorrelationEngine = require('./src/util/correlation-engine');
module.exports = {
CommandFactory,
PubSub: {
Amqp: {
MessageBus: PubSubAmqpMessageBus,
},
Aws: {
MessageBus: PubSubSnsMessageBus,
},
Factory: PubSubMessageBusFactory,
Testing: {
MessageBus: TestingMessageBus,
},
},
Queue: {
Amqp: {
MessageBus: QueueAmqpMessageBus,
},
Aws: {
LambdaHandler,
MessageBus: QueueAwsSqsMessageBus,
},
Factory: QueueMessageBusFactory,
},
Util: {
CompressEngine,
CorrelationEngine
},
};