@colabo-flow/s-go 0.2.10 → 0.2.11
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/README.md +2 -2
- package/dist/cjs/{lib/go.amqp.host_status.d.ts → demo/create-orchestrator.d.ts} +0 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/config.d.ts +2 -5
- package/dist/cjs/lib/go.amqp.orchestrator.d.ts +2 -0
- package/dist/cjs/lib/uuid_fix.d.ts +1 -0
- package/dist/cjs/lib/vos.d.ts +23 -12
- package/dist/{cjs/lib/go.amqp.service.d.ts → esm/demo/create-orchestrator.d.ts} +0 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -5
- package/dist/esm/lib/go.amqp.orchestrator.d.ts +2 -0
- package/dist/esm/lib/uuid_fix.d.ts +1 -0
- package/dist/esm/lib/vos.d.ts +23 -12
- package/dist/index.d.ts +26 -13
- package/package.json +1 -1
- package/dist/esm/lib/go.amqp.host_status.d.ts +0 -1
- package/dist/esm/lib/go.amqp.service.d.ts +0 -1
package/dist/cjs/lib/config.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
showReportsMsgs: boolean;
|
|
4
|
-
showExecutionMsgs: boolean;
|
|
5
|
-
};
|
|
1
|
+
import { IReportsConfig } from "./vos";
|
|
2
|
+
export declare const reportsConfig: IReportsConfig;
|
|
6
3
|
export declare const connectConfig: {
|
|
7
4
|
APP_NAME: string;
|
|
8
5
|
AMQP_URL: string;
|
package/dist/cjs/lib/vos.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare enum EColaboFlowGoMsgType {
|
|
|
9
9
|
TASK_INSTANCES_REPORT__RESPONSE = "TASK_INSTANCES_REPORT__RESPONSE",
|
|
10
10
|
HEARTBEAT = "HEARTBEAT"
|
|
11
11
|
}
|
|
12
|
+
/** time (in milliseconds) between two heartbeat pulses */
|
|
13
|
+
export declare const HEARTBEAT_TIME = 3000;
|
|
12
14
|
/**
|
|
13
15
|
* An interface describing messages exchanged between ColaboFlow.GO peers
|
|
14
16
|
*/
|
|
@@ -54,8 +56,8 @@ export interface IColaboFlowGoMsgExtension_Heartbeat {
|
|
|
54
56
|
export interface IColaboFlowGoMsgExtension_Heartbeat_Response {
|
|
55
57
|
/** the id of the heartbeat pulse message */
|
|
56
58
|
id: number;
|
|
57
|
-
/** the name of the
|
|
58
|
-
|
|
59
|
+
/** the name of the orchestrator responding */
|
|
60
|
+
orchestratorName: string;
|
|
59
61
|
}
|
|
60
62
|
/** Message extension for the task execution request */
|
|
61
63
|
export interface IColaboFlowGoMsgExtension_TaskExecute_Request {
|
|
@@ -99,8 +101,15 @@ export interface IColaboFlowGoTaskInstanceInfo {
|
|
|
99
101
|
/** task instance */
|
|
100
102
|
taskInstance: IFlowTaskInstance;
|
|
101
103
|
}
|
|
104
|
+
export interface IReportsConfig {
|
|
105
|
+
showHeartbeatMsgs: boolean;
|
|
106
|
+
showReportsMsgs: boolean;
|
|
107
|
+
showExecutionMsgs: boolean;
|
|
108
|
+
}
|
|
102
109
|
/** contains all the data that are necessary for a ColaboFlow.Go host to operate */
|
|
103
110
|
export interface IColaboFlowHostData {
|
|
111
|
+
/** reporting config data */
|
|
112
|
+
reportsConfig: IReportsConfig;
|
|
104
113
|
hostname: string;
|
|
105
114
|
appNameText?: string;
|
|
106
115
|
amqpUrl: string;
|
|
@@ -126,13 +135,13 @@ export interface IColaboFlowClientData {
|
|
|
126
135
|
clientName: string;
|
|
127
136
|
appNameText?: string;
|
|
128
137
|
amqpUrl: string;
|
|
129
|
-
|
|
138
|
+
queueOrchestrator: string;
|
|
130
139
|
connection?: ChannelModel;
|
|
131
140
|
channel?: Channel;
|
|
132
141
|
taskInstances: Record<string, IFlowTaskInstance>;
|
|
133
142
|
}
|
|
134
|
-
/** Contains all the data that are necessary for a ColaboFlow.Go
|
|
135
|
-
export interface
|
|
143
|
+
/** Contains all the data that are necessary for a ColaboFlow.Go orchestrator to handle a node */
|
|
144
|
+
export interface IColaboFlowOrchestratorHostData {
|
|
136
145
|
/** the name of the host */
|
|
137
146
|
hostName: string;
|
|
138
147
|
/** the name of the queue host listens on */
|
|
@@ -142,22 +151,24 @@ export interface IColaboFlowServiceHostData {
|
|
|
142
151
|
/** tasks instances' ids available for a specific host */
|
|
143
152
|
taskInstanceIds: string[];
|
|
144
153
|
}
|
|
145
|
-
/** contains all the data that are necessary for a ColaboFlow.Go
|
|
146
|
-
export interface
|
|
147
|
-
|
|
154
|
+
/** contains all the data that are necessary for a ColaboFlow.Go orchestrator to operate */
|
|
155
|
+
export interface IColaboFlowOrchestratorData {
|
|
156
|
+
/** reporting config data */
|
|
157
|
+
reportsConfig: IReportsConfig;
|
|
158
|
+
orchestratorName: string;
|
|
148
159
|
amqpUrl: string;
|
|
149
|
-
/** the heartbeat queue that the
|
|
160
|
+
/** the heartbeat queue that the orchestrator uses to listens heartbeat (registration) for the hosts */
|
|
150
161
|
queueHostHeartbeat: string;
|
|
151
|
-
/** the orchestrator queue that the
|
|
162
|
+
/** the orchestrator queue that the orchestrator uses to listens from the clients */
|
|
152
163
|
queueOrchestrator: string;
|
|
153
164
|
/** the channel for the clients communication */
|
|
154
165
|
clientsChannel?: Channel;
|
|
155
166
|
/** the channel for the hosts communication */
|
|
156
167
|
hostsChannel?: Channel;
|
|
157
|
-
/** infos about each host known to the
|
|
168
|
+
/** infos about each host known to the orchestrator
|
|
158
169
|
* currently hosts are discovered by receiving heartbeat messages from the hosts
|
|
159
170
|
*/
|
|
160
|
-
hosts: Record<string,
|
|
171
|
+
hosts: Record<string, IColaboFlowOrchestratorHostData>;
|
|
161
172
|
/** Provides all required info about the task execution requests (except the executed ones) coming for this particular host and its progress, etc
|
|
162
173
|
* Provides all required info about the task execution request and its progress, etc
|
|
163
174
|
* ***record key*** is the `id` of the `taskInstance`
|
|
File without changes
|
package/dist/esm/index.d.ts
CHANGED