@seidor-cloud-produtos/orbit-backend-lib 2.0.83 → 2.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ export interface IQueueProps {
|
|
|
5
5
|
}
|
|
6
6
|
export default abstract class CreateQueues {
|
|
7
7
|
readonly queue: QueueConnection;
|
|
8
|
-
protected
|
|
9
|
-
constructor(queue: QueueConnection);
|
|
8
|
+
protected queues: IQueueProps[];
|
|
9
|
+
constructor(queue: QueueConnection, queues: IQueueProps[]);
|
|
10
10
|
createQueues(): Promise<void>;
|
|
11
11
|
}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class CreateQueues {
|
|
4
4
|
queue;
|
|
5
|
-
|
|
5
|
+
queues;
|
|
6
|
+
constructor(queue, queues) {
|
|
6
7
|
this.queue = queue;
|
|
8
|
+
this.queues = queues;
|
|
7
9
|
}
|
|
8
10
|
async createQueues() {
|
|
9
11
|
if (!this.queue.createQueues) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import CreateQueues, { IQueueProps } from '../create-queues';
|
|
2
|
+
export interface IRabbitMQQueue extends IQueueProps {
|
|
3
|
+
configs: {
|
|
4
|
+
exchangeName: string;
|
|
5
|
+
exchangeType: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export default class RabbitMQCreateQueues extends CreateQueues {
|
|
9
|
+
queues: IRabbitMQQueue[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const create_queues_1 = tslib_1.__importDefault(require("../create-queues"));
|
|
5
|
+
class RabbitMQCreateQueues extends create_queues_1.default {
|
|
6
|
+
}
|
|
7
|
+
exports.default = RabbitMQCreateQueues;
|