@sera4/essentia 3.0.12 → 3.0.13
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.
- package/package.json +9 -3
- package/package.tar.gz +0 -0
- package/scripts/publish.sh +46 -0
- package/dist/ts/cache/index.d.ts +0 -33
- package/dist/ts/cache/index.js +0 -171
- package/dist/ts/cache/index.js.map +0 -1
- package/dist/ts/configurations/server-config.d.ts +0 -4
- package/dist/ts/configurations/server-config.js +0 -2
- package/dist/ts/configurations/server-config.js.map +0 -1
- package/dist/ts/constants/index.d.ts +0 -7
- package/dist/ts/constants/index.js +0 -8
- package/dist/ts/constants/index.js.map +0 -1
- package/dist/ts/cycle/index.d.ts +0 -53
- package/dist/ts/cycle/index.js +0 -169
- package/dist/ts/cycle/index.js.map +0 -1
- package/dist/ts/dns/DnsCache.d.ts +0 -50
- package/dist/ts/dns/DnsCache.js +0 -137
- package/dist/ts/dns/DnsCache.js.map +0 -1
- package/dist/ts/dns/index.d.ts +0 -4
- package/dist/ts/dns/index.js +0 -4
- package/dist/ts/dns/index.js.map +0 -1
- package/dist/ts/formatter/index.d.ts +0 -44
- package/dist/ts/formatter/index.js +0 -76
- package/dist/ts/formatter/index.js.map +0 -1
- package/dist/ts/hal/index.d.ts +0 -26
- package/dist/ts/hal/index.js +0 -70
- package/dist/ts/hal/index.js.map +0 -1
- package/dist/ts/health/index.d.ts +0 -53
- package/dist/ts/health/index.js +0 -165
- package/dist/ts/health/index.js.map +0 -1
- package/dist/ts/helpers/index.d.ts +0 -1
- package/dist/ts/helpers/index.js +0 -2
- package/dist/ts/helpers/index.js.map +0 -1
- package/dist/ts/helpers/test-server-wrapper.d.ts +0 -56
- package/dist/ts/helpers/test-server-wrapper.js +0 -144
- package/dist/ts/helpers/test-server-wrapper.js.map +0 -1
- package/dist/ts/index.d.ts +0 -22
- package/dist/ts/index.js +0 -27
- package/dist/ts/index.js.map +0 -1
- package/dist/ts/last-commit/index.d.ts +0 -12
- package/dist/ts/last-commit/index.js +0 -82
- package/dist/ts/last-commit/index.js.map +0 -1
- package/dist/ts/logger/index.d.ts +0 -3
- package/dist/ts/logger/index.js +0 -4
- package/dist/ts/logger/index.js.map +0 -1
- package/dist/ts/logger/s4-logger.d.ts +0 -23
- package/dist/ts/logger/s4-logger.js +0 -105
- package/dist/ts/logger/s4-logger.js.map +0 -1
- package/dist/ts/paginator/index.d.ts +0 -2
- package/dist/ts/paginator/index.js +0 -3
- package/dist/ts/paginator/index.js.map +0 -1
- package/dist/ts/paginator/s4-pagination.d.ts +0 -26
- package/dist/ts/paginator/s4-pagination.js +0 -49
- package/dist/ts/paginator/s4-pagination.js.map +0 -1
- package/dist/ts/paginator/sql-pagination.d.ts +0 -52
- package/dist/ts/paginator/sql-pagination.js +0 -157
- package/dist/ts/paginator/sql-pagination.js.map +0 -1
- package/dist/ts/paper-trail/helpers.d.ts +0 -14
- package/dist/ts/paper-trail/helpers.js +0 -74
- package/dist/ts/paper-trail/helpers.js.map +0 -1
- package/dist/ts/paper-trail/index.d.ts +0 -54
- package/dist/ts/paper-trail/index.js +0 -236
- package/dist/ts/paper-trail/index.js.map +0 -1
- package/dist/ts/prompts/index.d.ts +0 -21
- package/dist/ts/prompts/index.js +0 -68
- package/dist/ts/prompts/index.js.map +0 -1
- package/dist/ts/queue/index.d.ts +0 -232
- package/dist/ts/queue/index.js +0 -451
- package/dist/ts/queue/index.js.map +0 -1
- package/dist/ts/queue/publisher.d.ts +0 -41
- package/dist/ts/queue/publisher.js +0 -84
- package/dist/ts/queue/publisher.js.map +0 -1
- package/dist/ts/queue/queue-logger.d.ts +0 -10
- package/dist/ts/queue/queue-logger.js +0 -35
- package/dist/ts/queue/queue-logger.js.map +0 -1
- package/dist/ts/queue/subscriber.d.ts +0 -55
- package/dist/ts/queue/subscriber.js +0 -98
- package/dist/ts/queue/subscriber.js.map +0 -1
- package/dist/ts/safe-proxy/index.d.ts +0 -35
- package/dist/ts/safe-proxy/index.js +0 -54
- package/dist/ts/safe-proxy/index.js.map +0 -1
- package/dist/ts/serializer/index.d.ts +0 -52
- package/dist/ts/serializer/index.js +0 -83
- package/dist/ts/serializer/index.js.map +0 -1
- package/dist/ts/utils/index.d.ts +0 -49
- package/dist/ts/utils/index.js +0 -157
- package/dist/ts/utils/index.js.map +0 -1
package/dist/ts/prompts/index.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* Essentia Common Prompt Functions */
|
|
2
|
-
// This file contains common prompt functions that are used in CLI scripts
|
|
3
|
-
// that are run in the each project. These functions are used to
|
|
4
|
-
// prompt the user for input and to wait for the user to press enter
|
|
5
|
-
// before continuing. This is useful for scripts that are run in the
|
|
6
|
-
// command line and need to wait for the user to do something before
|
|
7
|
-
// continuing.
|
|
8
|
-
import { S4Logger } from "../logger/s4-logger.js";
|
|
9
|
-
import { ArgumentParser } from 'argparse';
|
|
10
|
-
import prompt from "prompt";
|
|
11
|
-
const logger = new S4Logger();
|
|
12
|
-
// New common argument parser which makes parsing and setting up commandline options easier
|
|
13
|
-
const setupCLIParser = (description) => {
|
|
14
|
-
logger.info(description);
|
|
15
|
-
return new ArgumentParser({ description });
|
|
16
|
-
};
|
|
17
|
-
// a common init function which waits for the command prompt to be delivered
|
|
18
|
-
// a common use is for the awaiting of the queues to initialize before running
|
|
19
|
-
const commonCLIInit = async (options = {}) => {
|
|
20
|
-
//add in defaults to options if they have not been specified or object is {}
|
|
21
|
-
const defaultOptions = {
|
|
22
|
-
asyncFcns: [],
|
|
23
|
-
extraFcns: [],
|
|
24
|
-
sleepTime: 1000,
|
|
25
|
-
...options
|
|
26
|
-
};
|
|
27
|
-
// Sleep for 1 second to allow the prompt to be displayed
|
|
28
|
-
// at the end of bootstrap logs
|
|
29
|
-
await cliSleep(defaultOptions.sleepTime);
|
|
30
|
-
defaultOptions.extraFcns.forEach(fcn => {
|
|
31
|
-
fcn();
|
|
32
|
-
});
|
|
33
|
-
for (const fcn of defaultOptions.asyncFcns) {
|
|
34
|
-
await fcn();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const promptCLIAsync = async (options) => {
|
|
38
|
-
return new Promise((resolve, reject) => {
|
|
39
|
-
prompt.start();
|
|
40
|
-
prompt.get(options, (err, res) => {
|
|
41
|
-
if (err) {
|
|
42
|
-
reject(err);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
resolve(res);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
// A predefined waitPrompt for use at the end of the scripts that use
|
|
51
|
-
// message queues. Message Queues often take a bit to fire
|
|
52
|
-
const waitCLIPrompt = {
|
|
53
|
-
"Push <enter> when done": {
|
|
54
|
-
type: "boolean"
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const continueCLIPrompt = {
|
|
58
|
-
"Push <enter> to continue": {
|
|
59
|
-
type: "boolean"
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const cliSleep = async (ms) => {
|
|
63
|
-
return new Promise((resolve) => {
|
|
64
|
-
setTimeout(resolve, ms);
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
export { commonCLIInit, continueCLIPrompt, promptCLIAsync, setupCLIParser, cliSleep, waitCLIPrompt };
|
|
68
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/prompts/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAC1E,kEAAkE;AAClE,qEAAqE;AACrE,sEAAsE;AACtE,qEAAqE;AACrE,eAAe;AAEf,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;AAiB9B,2FAA2F;AAC3F,MAAM,cAAc,GAAG,CAAC,WAAmB,EAAkB,EAAE;IAC7D,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzB,OAAO,IAAI,cAAc,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,4EAA4E;AAC5E,8EAA8E;AAC9E,MAAM,aAAa,GAAG,KAAK,EAAE,UAA0B,EAAE,EAAiB,EAAE;IAC1E,4EAA4E;IAC5E,MAAM,cAAc,GAA6B;QAC/C,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,IAAI;QACf,GAAG,OAAO;KACX,CAAC;IAEF,yDAAyD;IACzD,+BAA+B;IAC/B,MAAM,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAEzC,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACrC,GAAG,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;IAEH,KAAK,MAAM,GAAG,IAAI,cAAc,CAAC,SAAS,EAAE,CAAC;QAC3C,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,KAAK,EAAE,OAAsB,EAAgC,EAAE;IACpF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAQ,EAAE,GAAQ,EAAE,EAAE;YACzC,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,CAAC,CAAC;YACf,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,qEAAqE;AACrE,4DAA4D;AAC5D,MAAM,aAAa,GAAkB;IACnC,wBAAwB,EAAE;QACxB,IAAI,EAAE,SAAS;KAChB;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAkB;IACvC,0BAA0B,EAAE;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,KAAK,EAAE,EAAU,EAAiB,EAAE;IACnD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,QAAQ,EACR,aAAa,EAGd,CAAC"}
|
package/dist/ts/queue/index.d.ts
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
interface ConnectionOptions {
|
|
2
|
-
connectionUrl: string;
|
|
3
|
-
logEnabled?: boolean;
|
|
4
|
-
retryInterval?: number;
|
|
5
|
-
}
|
|
6
|
-
interface Exchange {
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
options?: any;
|
|
10
|
-
}
|
|
11
|
-
interface PublisherOptions {
|
|
12
|
-
exchange: Exchange;
|
|
13
|
-
}
|
|
14
|
-
interface SubscriberOptions {
|
|
15
|
-
exchange: Exchange;
|
|
16
|
-
queue: {
|
|
17
|
-
name: string;
|
|
18
|
-
options?: any;
|
|
19
|
-
};
|
|
20
|
-
key: string;
|
|
21
|
-
}
|
|
22
|
-
interface UnregisterSubscriberOptions {
|
|
23
|
-
exchange: Exchange;
|
|
24
|
-
queue: {
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
key: string;
|
|
28
|
-
}
|
|
29
|
-
interface FanoutQueueConfig {
|
|
30
|
-
name: string;
|
|
31
|
-
routingKey?: string;
|
|
32
|
-
options?: any;
|
|
33
|
-
}
|
|
34
|
-
interface FanoutConfiguration {
|
|
35
|
-
exchange: {
|
|
36
|
-
name: string;
|
|
37
|
-
type: "fanout";
|
|
38
|
-
options?: any;
|
|
39
|
-
};
|
|
40
|
-
queues: FanoutQueueConfig[];
|
|
41
|
-
}
|
|
42
|
-
type MessageListener = (payload: any, error?: any) => void;
|
|
43
|
-
/**
|
|
44
|
-
* An interface to AMQP service
|
|
45
|
-
*/
|
|
46
|
-
declare class S4Queue {
|
|
47
|
-
private connection;
|
|
48
|
-
private connectionTestChannel;
|
|
49
|
-
private retry;
|
|
50
|
-
private pubs;
|
|
51
|
-
private subs;
|
|
52
|
-
private fanouts;
|
|
53
|
-
constructor();
|
|
54
|
-
/**
|
|
55
|
-
* Tests the connection to the service.
|
|
56
|
-
* Internally, the same connection is used for test
|
|
57
|
-
* and production code, but a separate channel is opened.
|
|
58
|
-
* Once the channel is obtained, there is an assert on the
|
|
59
|
-
* existence of a topic exchange called '--health-check--'.
|
|
60
|
-
* The following must be satisfied for the test to pass
|
|
61
|
-
* 1. must be connected
|
|
62
|
-
* 2. must have a test channel
|
|
63
|
-
* 3. must assert the exchange
|
|
64
|
-
*/
|
|
65
|
-
testConnection(): Promise<void>;
|
|
66
|
-
/**
|
|
67
|
-
* Opens a connection to AMQP server.
|
|
68
|
-
* @param options Connection parameters. At the very least options.connectionUrl must be present.
|
|
69
|
-
*/
|
|
70
|
-
openConnection(options: ConnectionOptions): Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Closes the connection to AMQP server
|
|
73
|
-
* and clears the registered publishers
|
|
74
|
-
* and subscribers
|
|
75
|
-
*/
|
|
76
|
-
closeConnection(): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Returns whether we have an active connection
|
|
79
|
-
* or not.
|
|
80
|
-
*/
|
|
81
|
-
isConnected(): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use registerPublisher
|
|
84
|
-
* Registers a new direct publisher on the given exchange.
|
|
85
|
-
* If exchange doesn't exist, one will be created.
|
|
86
|
-
* @param exchange the name of the exchange on AMQP service.
|
|
87
|
-
*/
|
|
88
|
-
registerDirectPublisher(exchange: string): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated Use registerPublisher
|
|
91
|
-
* Registers a new topic publisher on the given exchange.
|
|
92
|
-
* If exchange doesn't exist, one will be created.
|
|
93
|
-
* @param exchange the name of the exchange on AMQP service.
|
|
94
|
-
*/
|
|
95
|
-
registerTopicPublisher(exchange: string): Promise<void>;
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated Use registerPublisher
|
|
98
|
-
* Registers a new fanout publisher on the given exchange.
|
|
99
|
-
* If exchange doesn't exist, one will be created.
|
|
100
|
-
* @param exchange the name of the exchange on AMQP service.
|
|
101
|
-
*/
|
|
102
|
-
registerFanoutPublisher(exchange: string): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Registers a new publisher
|
|
105
|
-
* @param options connection options.
|
|
106
|
-
*/
|
|
107
|
-
registerPublisher(options: PublisherOptions): Promise<void>;
|
|
108
|
-
/**
|
|
109
|
-
* Checks whether or not a publisher with given parameters
|
|
110
|
-
* has been registered already
|
|
111
|
-
* @param exchange the name of the exchange.
|
|
112
|
-
* @returns true if registered already, false otherwise
|
|
113
|
-
*/
|
|
114
|
-
hasPublisher(exchange: string): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Checks whether or not a fanout with given exchange name
|
|
117
|
-
* has been registered already
|
|
118
|
-
* @param exchange the name of the exchange.
|
|
119
|
-
* @returns true if registered already, false otherwise
|
|
120
|
-
*/
|
|
121
|
-
hasFanout(exchange: string): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Removes a previously registered publisher
|
|
124
|
-
* @param options
|
|
125
|
-
*/
|
|
126
|
-
unregisterPublisher(options: PublisherOptions): Promise<void>;
|
|
127
|
-
/**
|
|
128
|
-
* @deprecated Use registerSubscriber
|
|
129
|
-
* Registers a new direct subscriber on a given exchange and queue.
|
|
130
|
-
* If exchange and queue don't exists, they'll be created
|
|
131
|
-
* and bound through the provided routing key.
|
|
132
|
-
* @param exchange the name of the exchange.
|
|
133
|
-
* @param queue the name of the queue.
|
|
134
|
-
* @param key the name of the routing key.
|
|
135
|
-
*/
|
|
136
|
-
registerDirectSubscriber(exchange: string, queue: string, key: string): Promise<void>;
|
|
137
|
-
/**
|
|
138
|
-
* @deprecated Use registerSubscriber
|
|
139
|
-
* Registers a new topic subscriber on a given exchange and queue.
|
|
140
|
-
* If exchange and queue don't exists, they'll be created
|
|
141
|
-
* and bound through the provided routing key.
|
|
142
|
-
* @param exchange the name of the exchange.
|
|
143
|
-
* @param queue the name of the queue.
|
|
144
|
-
* @param key the name of the routing key.
|
|
145
|
-
*/
|
|
146
|
-
registerTopicSubscriber(exchange: string, queue: string, key: string): Promise<void>;
|
|
147
|
-
/**
|
|
148
|
-
* An overloaded version of registering a subscriber
|
|
149
|
-
* allowing for more fine tuned parameters
|
|
150
|
-
* @param options subscribing options
|
|
151
|
-
*/
|
|
152
|
-
registerSubscriber(options: SubscriberOptions): Promise<void>;
|
|
153
|
-
/**
|
|
154
|
-
* Checks whether or not a subscriber with given parameters
|
|
155
|
-
* has been registered already
|
|
156
|
-
* @param exchange the name of the exchange.
|
|
157
|
-
* @param queue the name of the queue.
|
|
158
|
-
* @param key the name of the routing key.
|
|
159
|
-
* @returns true if registered already, false otherwise
|
|
160
|
-
*/
|
|
161
|
-
hasSubscriber(exchange: string, queue: string, key: string): boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Removes a previously registered subscriber
|
|
164
|
-
* @param options
|
|
165
|
-
*/
|
|
166
|
-
unregisterSubscriber(options: UnregisterSubscriberOptions): Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
* Publishes a message on a given exchange with routing key.
|
|
169
|
-
* @param exchange the name of the exchange.
|
|
170
|
-
* @param key the name of the routing key.
|
|
171
|
-
* @param msg a JSON object as the message.
|
|
172
|
-
*/
|
|
173
|
-
publishDirectMessage(exchange: string, key: string, msg: any): Promise<string>;
|
|
174
|
-
/**
|
|
175
|
-
* Publishes a message on a given exchange with a topic.
|
|
176
|
-
* @param exchange the name of the exchange.
|
|
177
|
-
* @param topic the name of the topic.
|
|
178
|
-
* @param msg a JSON object as the message.
|
|
179
|
-
*/
|
|
180
|
-
publishTopicMessage(exchange: string, topic: string, msg: any): Promise<string>;
|
|
181
|
-
/**
|
|
182
|
-
* Publish a message to the exchange
|
|
183
|
-
* @param exchange name of exchange
|
|
184
|
-
* @param key name of the key or topic
|
|
185
|
-
* @param msg payload to be published
|
|
186
|
-
*/
|
|
187
|
-
publishMessage(exchange: string, key: string, msg: any): Promise<string>;
|
|
188
|
-
/**
|
|
189
|
-
* Binds an exchange to a queue
|
|
190
|
-
* @param exchange the name of the exchange.
|
|
191
|
-
* @param queue the name of the queue.
|
|
192
|
-
* @param pattern (optional) pattern for routing key
|
|
193
|
-
*/
|
|
194
|
-
bindQueueToExchange(exchange: string, queue: string, pattern?: string): Promise<void>;
|
|
195
|
-
/**
|
|
196
|
-
* Adds a listener for a specific key.
|
|
197
|
-
* If a subscriber that was registered was found
|
|
198
|
-
* with that key, the listener is added, otherwise
|
|
199
|
-
* it's ignored
|
|
200
|
-
* @param key AMQP routing key
|
|
201
|
-
* @param listener callback
|
|
202
|
-
*/
|
|
203
|
-
addMessageListener(key: string, listener: MessageListener): void;
|
|
204
|
-
/**
|
|
205
|
-
* Registers a fanout exchange with multiple bound queues.
|
|
206
|
-
* Creates the fanout exchange if it doesn't exist, then creates and binds
|
|
207
|
-
* all specified queues to the exchange.
|
|
208
|
-
* @param config Fanout configuration with exchange and queue definitions
|
|
209
|
-
*/
|
|
210
|
-
registerFanout(config: FanoutConfiguration): Promise<void>;
|
|
211
|
-
/**
|
|
212
|
-
* Unregisters a fanout configuration by removing all associated subscribers
|
|
213
|
-
* and optionally the publisher/exchange.
|
|
214
|
-
* @param config Fanout configuration to unregister
|
|
215
|
-
* @param removeExchange Whether to also remove the exchange (default: false)
|
|
216
|
-
*/
|
|
217
|
-
unregisterFanout(config: FanoutConfiguration, removeExchange?: boolean): Promise<void>;
|
|
218
|
-
/**
|
|
219
|
-
* Updates the connection reference to all the previously
|
|
220
|
-
* registered publishers, subscribers, and fanouts.
|
|
221
|
-
* After we successfully establish a connection and register pubs/subs/fanouts,
|
|
222
|
-
* it's possible for the connection to break. This object will try
|
|
223
|
-
* to re-establish a new connection every 3 seconds (or whatever configuration is set)
|
|
224
|
-
* and if a new connection is established, we need to pass that connection to
|
|
225
|
-
* all our pubs/subs, otherwise they'll be operating with old/stale references
|
|
226
|
-
* @param connRef a new connection reference to the AMQP service
|
|
227
|
-
*/
|
|
228
|
-
updatePubsAndSubsConnectionRef(connRef: any): void;
|
|
229
|
-
}
|
|
230
|
-
declare const queue: S4Queue;
|
|
231
|
-
export default queue;
|
|
232
|
-
export type { FanoutConfiguration, FanoutQueueConfig, Exchange, PublisherOptions, SubscriberOptions };
|