@nsshunt/stsappframework 3.1.150 → 3.1.151
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/dist/commonTypes.js +9 -1
- package/dist/commonTypes.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/masterprocessbase.js +6 -6
- package/dist/masterprocessbase.js.map +1 -1
- package/dist/processbase.js +8 -6
- package/dist/processbase.js.map +1 -1
- package/dist/redisMessageHandler.js.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/serverprocessbase.js +6 -6
- package/dist/serverprocessbase.js.map +1 -1
- package/dist/singleprocessbase.js.map +1 -1
- package/dist/workerprocessbase.js.map +1 -1
- package/package.json +1 -1
- package/src/commonTypes.ts +170 -2
- package/src/index.ts +0 -1
- package/src/masterprocessbase.ts +1 -2
- package/src/processbase.ts +12 -9
- package/src/redisMessageHandler.ts +1 -3
- package/src/server.ts +1 -3
- package/src/serverprocessbase.ts +1 -1
- package/src/singleprocessbase.ts +1 -2
- package/src/tcpserver/appmaster.ts +1 -1
- package/src/workerprocessbase.ts +1 -2
- package/types/commonTypes.d.ts +129 -2
- package/types/commonTypes.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/masterprocessbase.d.ts +1 -2
- package/types/masterprocessbase.d.ts.map +1 -1
- package/types/processbase.d.ts +3 -4
- package/types/processbase.d.ts.map +1 -1
- package/types/redisMessageHandler.d.ts +1 -2
- package/types/redisMessageHandler.d.ts.map +1 -1
- package/types/server.d.ts +1 -2
- package/types/server.d.ts.map +1 -1
- package/types/serverprocessbase.d.ts +1 -1
- package/types/serverprocessbase.d.ts.map +1 -1
- package/types/singleprocessbase.d.ts +1 -2
- package/types/singleprocessbase.d.ts.map +1 -1
- package/types/tcpserver/appmaster.d.ts +1 -1
- package/types/tcpserver/appmaster.d.ts.map +1 -1
- package/types/workerprocessbase.d.ts +1 -2
- package/types/workerprocessbase.d.ts.map +1 -1
- package/dist/processoptions.js +0 -12
- package/dist/processoptions.js.map +0 -1
- package/src/processoptions.ts +0 -169
- package/types/processoptions.d.ts +0 -128
- package/types/processoptions.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverprocessbase.d.ts","sourceRoot":"","sources":["../src/serverprocessbase.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,cAAc,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"serverprocessbase.d.ts","sourceRoot":"","sources":["../src/serverprocessbase.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,cAAc,EAAiB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAS5C,OAAO,EAAE,MAAM,EAAiB,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO5C;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;;gBAUlC,OAAO,EAAE,cAAc;IAInC,IAAI,UAAU,QAEb;IAED,IAAI,EAAE,+LAEL;IAED,IAAI,aAAa,IAAI,gBAAgB,GAAG,IAAI,CAE3C;IACD,IAAI,aAAa,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI,EAE7C;IAgMD,IAAa,YAAY,IAAI,OAAO,CAEnC;IASD,SAAS,uBAA8B,OAAO,WAAW,GAAG,KAAG,OAAO,CAAC,IAAI,CAAC,CAkG3E;IAED,cAAc,QAAY,OAAO,CAAC,IAAI,CAAC,CAetC;CACJ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ProcessOptions } from './
|
|
2
|
-
import { ISingleProcessBase } from './commonTypes';
|
|
1
|
+
import { ISingleProcessBase, ProcessOptions } from './commonTypes';
|
|
3
2
|
import { InstrumentDefinitions } from '@nsshunt/stsobservability';
|
|
4
3
|
import { ServerProcessBase } from './serverprocessbase';
|
|
5
4
|
export type EventCb = (socket: any, data: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singleprocessbase.d.ts","sourceRoot":"","sources":["../src/singleprocessbase.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"singleprocessbase.d.ts","sourceRoot":"","sources":["../src/singleprocessbase.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAMvD,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;AAEtD,qBAAa,iBAAkB,SAAQ,iBAAkB,YAAW,kBAAkB;IAElF;;;OAGA;gBACY,OAAO,EAAE,cAAc;IAI1B,0BAA0B,IAAI,IAAI;IAWlC,wBAAwB,IAAI,qBAAqB;IAS1D;;;OAGA;IACS,eAAe,IAAI,GAAG;IAI/B,cAAc;IASd,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAmB/B,aAAa,sBAiCZ;IAEK,oBAAoB;CAI7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONObject } from '@nsshunt/stsutils';
|
|
2
2
|
import { MasterProcessBase } from './../masterprocessbase';
|
|
3
|
-
import { ProcessOptions } from './../
|
|
3
|
+
import { ProcessOptions } from './../commonTypes';
|
|
4
4
|
export declare enum AppMasterRAFTState {
|
|
5
5
|
IDLE = "IDLE",
|
|
6
6
|
FOLLOWER = "FOLLOWER",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appmaster.d.ts","sourceRoot":"","sources":["../../src/tcpserver/appmaster.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"appmaster.d.ts","sourceRoot":"","sources":["../../src/tcpserver/appmaster.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAajD,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,GAAG,IAAI,CAAA;CAC1B;AAED,qBAAa,SAAU,SAAQ,iBAAiB;;gBA0BhC,aAAa,EAAE,cAAc;IA0czC,aAAa,IAAI,IAAI;CAKxB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSONObject } from '@nsshunt/stsutils';
|
|
2
|
-
import { ProcessOptions } from './
|
|
3
|
-
import { IWorkerProcessBase } from './commonTypes';
|
|
2
|
+
import { IWorkerProcessBase, ProcessOptions } from './commonTypes';
|
|
4
3
|
import { ServerProcessBase } from './serverprocessbase';
|
|
5
4
|
/**
|
|
6
5
|
* todo
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workerprocessbase.d.ts","sourceRoot":"","sources":["../src/workerprocessbase.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"workerprocessbase.d.ts","sourceRoot":"","sources":["../src/workerprocessbase.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAiE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjI,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAWvD;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,iBAAkB,YAAW,kBAAkB;;gBAOtE,OAAO,EAAE,cAAc;IAQnC,aAAa;IAUb,yBAAyB,CAAC,GAAG,EAAE,GAAG;IAIzB,0BAA0B,IAAI,IAAI;IAwC3C,SAAS,YAAmB,GAAG,KAAG,OAAO,CAAC,MAAM,CAAC,CAUhD;IAGD,YAAY,aAAoB,MAAM,WAAW,GAAG,KAAG,OAAO,CAAC,UAAU,CAAC,CAWzE;IAED,uBAAuB,QAAa,OAAO,CAAC,UAAU,CAAC,CAQtD;IAED,WAAW,sBAKV;IAED,UAAU,QAAa,OAAO,CAAC,MAAM,CAAC,CAkBrC;IAED,kBAAkB;;;;;;;;;;;;;OAyCjB;IAED,aAAa,sBA4GX;IAEO,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"}
|
package/dist/processoptions.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STSServerType = void 0;
|
|
4
|
-
var STSServerType;
|
|
5
|
-
(function (STSServerType) {
|
|
6
|
-
STSServerType["NONE"] = "NONE";
|
|
7
|
-
STSServerType["EXPRESS"] = "EXPRESS";
|
|
8
|
-
STSServerType["EXPRESS_TLS"] = "EXPRESS_TLS";
|
|
9
|
-
STSServerType["TCPRAW_TLS"] = "TCPRAW_TLS";
|
|
10
|
-
STSServerType["JSONRPC2_TLS"] = "JSONRPC_TLS";
|
|
11
|
-
})(STSServerType || (exports.STSServerType = STSServerType = {}));
|
|
12
|
-
//# sourceMappingURL=processoptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processoptions.js","sourceRoot":"","sources":["../src/processoptions.ts"],"names":[],"mappings":";;;AAcA,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;IAC9B,0CAAyB,CAAA;IACtB,6CAA4B,CAAA;AAChC,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB"}
|
package/src/processoptions.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import express from 'express'
|
|
2
|
-
|
|
3
|
-
import { IProcessBase, IServiceProcessContext } from './commonTypes'
|
|
4
|
-
import { ISTSLogger } from '@nsshunt/stsutils'
|
|
5
|
-
|
|
6
|
-
export interface STSExpressServer {
|
|
7
|
-
get App(): express.Express
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Factory method that adds express routes to the express app object.
|
|
12
|
-
*/
|
|
13
|
-
export type ExpressRouteFactory = (app: express.Express, stsApp: IProcessBase) => void
|
|
14
|
-
|
|
15
|
-
export enum STSServerType {
|
|
16
|
-
NONE = "NONE",
|
|
17
|
-
EXPRESS = "EXPRESS",
|
|
18
|
-
EXPRESS_TLS = "EXPRESS_TLS",
|
|
19
|
-
TCPRAW_TLS = "TCPRAW_TLS",
|
|
20
|
-
JSONRPC2_TLS = "JSONRPC_TLS"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//export interface ProcessOptions extends JSONObject {
|
|
24
|
-
export interface ProcessOptions {
|
|
25
|
-
/**
|
|
26
|
-
* Is this service worker the master worker (thread).
|
|
27
|
-
*/
|
|
28
|
-
isMaster: boolean
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Unique service instance ID (uuidv4).
|
|
32
|
-
*/
|
|
33
|
-
serviceInstanceId: string
|
|
34
|
-
|
|
35
|
-
// Service details
|
|
36
|
-
|
|
37
|
-
serverType: STSServerType
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* HTTPS service public key path.
|
|
41
|
-
*/
|
|
42
|
-
httpsServerKeyPath: string
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* HTTPS service certificate (private key) path.
|
|
46
|
-
*/
|
|
47
|
-
httpsServerCertificatePath: string
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Determines whether the process will explicitly exit (using code 0) when any terminate signal is received.
|
|
51
|
-
*/
|
|
52
|
-
processExitOnTerminate: boolean
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Does this service run a Web Socket Server (wss).
|
|
56
|
-
*/
|
|
57
|
-
wssServer: boolean
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Service Prometheus metric support.
|
|
61
|
-
*/
|
|
62
|
-
prometheusSupport: boolean
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Service endpoint (without trailing /). Example: https://localhost
|
|
66
|
-
*/
|
|
67
|
-
endpoint: string
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Service API root (without trailing /). Example: /stsrest01/v1
|
|
71
|
-
*/
|
|
72
|
-
apiRoot: string
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Service listen port. Example: 3001.
|
|
76
|
-
* Note that unix domain sockets are also supported. Example: /tmp/stsrest01.sock.
|
|
77
|
-
* The socket file may also need permissions changed, i.e. chmodSync(port, 511); or chmodSync(port, 777);
|
|
78
|
-
* Axios client calls will also need to use socketPath. Example: ..., socketPath: '/tmp/stsrest01.sock'
|
|
79
|
-
* Ref: https://stackoverflow.com/questions/21342828/node-express-unix-domain-socket-permissions
|
|
80
|
-
* To setup side car service (per running machine/node)
|
|
81
|
-
* sudo mkdir /var/run/sts
|
|
82
|
-
* sudo chown marcusbettens /var/run/sts
|
|
83
|
-
* In .env file per service
|
|
84
|
-
* PORT=/var/run/sts/stsrest01.sock
|
|
85
|
-
*/
|
|
86
|
-
listenPort: string
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Port that this service will be exposed externally on, i.e. clients will use this port to invoke APIs on this service.
|
|
90
|
-
*/
|
|
91
|
-
port: string
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Prometheus Cluster Server port (port used for cluster prometheus scrapes). Example: 3011.
|
|
95
|
-
*/
|
|
96
|
-
prometheusClusterPort: string
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Service Name. Example: Rest01
|
|
100
|
-
*/
|
|
101
|
-
serviceName: string
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Service Version. Example: 1.0.0
|
|
105
|
-
*/
|
|
106
|
-
serviceVersion: string
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Determines where logging is output to the console (stdout).
|
|
110
|
-
*/
|
|
111
|
-
consoleLogging: boolean
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Determines where logging is output to the logging instrument (if present).
|
|
115
|
-
*/
|
|
116
|
-
instrumentLogging: boolean
|
|
117
|
-
|
|
118
|
-
// Publisher options.
|
|
119
|
-
|
|
120
|
-
serviceProcessContext?: IServiceProcessContext
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Factory method that adds express routes to the express app object. Used for non-static content.
|
|
124
|
-
* Non-Static content is applied after logging middleware.
|
|
125
|
-
*/
|
|
126
|
-
expressServerRouteFactory?: ExpressRouteFactory
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Factory method that adds express routes to the express app object for static content.
|
|
130
|
-
* Static content is applied before logging middleware.
|
|
131
|
-
*/
|
|
132
|
-
expressServerRouteStaticFactory?: ExpressRouteFactory
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Determines whether the service will monitor its own health via the /latency API endpoint.
|
|
136
|
-
* Note: The service must implement the /latency end-point for this to work.
|
|
137
|
-
*/
|
|
138
|
-
useLatency: boolean
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Determines whether this service is going to need database access.
|
|
142
|
-
*/
|
|
143
|
-
useDatabase: boolean
|
|
144
|
-
|
|
145
|
-
instrumentationObservationInterval: number
|
|
146
|
-
|
|
147
|
-
instrumentationTimeWindow: number
|
|
148
|
-
|
|
149
|
-
useSocketIoRedisAdaptor: boolean
|
|
150
|
-
|
|
151
|
-
socketIoRedisAdaptorUrl?: string
|
|
152
|
-
|
|
153
|
-
useRedisInstrumentationTransport?: boolean
|
|
154
|
-
|
|
155
|
-
redisInstrumentationTransportUrl?: string
|
|
156
|
-
|
|
157
|
-
workerExec?: string
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Is this application using nodejs cluster mode?
|
|
161
|
-
*/
|
|
162
|
-
clusterMode: boolean
|
|
163
|
-
|
|
164
|
-
logger: ISTSLogger
|
|
165
|
-
|
|
166
|
-
publisherLogger: ISTSLogger
|
|
167
|
-
|
|
168
|
-
publishInterval: number
|
|
169
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
import { IProcessBase, IServiceProcessContext } from './commonTypes';
|
|
3
|
-
import { ISTSLogger } from '@nsshunt/stsutils';
|
|
4
|
-
export interface STSExpressServer {
|
|
5
|
-
get App(): express.Express;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Factory method that adds express routes to the express app object.
|
|
9
|
-
*/
|
|
10
|
-
export type ExpressRouteFactory = (app: express.Express, stsApp: IProcessBase) => void;
|
|
11
|
-
export declare enum STSServerType {
|
|
12
|
-
NONE = "NONE",
|
|
13
|
-
EXPRESS = "EXPRESS",
|
|
14
|
-
EXPRESS_TLS = "EXPRESS_TLS",
|
|
15
|
-
TCPRAW_TLS = "TCPRAW_TLS",
|
|
16
|
-
JSONRPC2_TLS = "JSONRPC_TLS"
|
|
17
|
-
}
|
|
18
|
-
export interface ProcessOptions {
|
|
19
|
-
/**
|
|
20
|
-
* Is this service worker the master worker (thread).
|
|
21
|
-
*/
|
|
22
|
-
isMaster: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Unique service instance ID (uuidv4).
|
|
25
|
-
*/
|
|
26
|
-
serviceInstanceId: string;
|
|
27
|
-
serverType: STSServerType;
|
|
28
|
-
/**
|
|
29
|
-
* HTTPS service public key path.
|
|
30
|
-
*/
|
|
31
|
-
httpsServerKeyPath: string;
|
|
32
|
-
/**
|
|
33
|
-
* HTTPS service certificate (private key) path.
|
|
34
|
-
*/
|
|
35
|
-
httpsServerCertificatePath: string;
|
|
36
|
-
/**
|
|
37
|
-
* Determines whether the process will explicitly exit (using code 0) when any terminate signal is received.
|
|
38
|
-
*/
|
|
39
|
-
processExitOnTerminate: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Does this service run a Web Socket Server (wss).
|
|
42
|
-
*/
|
|
43
|
-
wssServer: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Service Prometheus metric support.
|
|
46
|
-
*/
|
|
47
|
-
prometheusSupport: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Service endpoint (without trailing /). Example: https://localhost
|
|
50
|
-
*/
|
|
51
|
-
endpoint: string;
|
|
52
|
-
/**
|
|
53
|
-
* Service API root (without trailing /). Example: /stsrest01/v1
|
|
54
|
-
*/
|
|
55
|
-
apiRoot: string;
|
|
56
|
-
/**
|
|
57
|
-
* Service listen port. Example: 3001.
|
|
58
|
-
* Note that unix domain sockets are also supported. Example: /tmp/stsrest01.sock.
|
|
59
|
-
* The socket file may also need permissions changed, i.e. chmodSync(port, 511); or chmodSync(port, 777);
|
|
60
|
-
* Axios client calls will also need to use socketPath. Example: ..., socketPath: '/tmp/stsrest01.sock'
|
|
61
|
-
* Ref: https://stackoverflow.com/questions/21342828/node-express-unix-domain-socket-permissions
|
|
62
|
-
* To setup side car service (per running machine/node)
|
|
63
|
-
* sudo mkdir /var/run/sts
|
|
64
|
-
* sudo chown marcusbettens /var/run/sts
|
|
65
|
-
* In .env file per service
|
|
66
|
-
* PORT=/var/run/sts/stsrest01.sock
|
|
67
|
-
*/
|
|
68
|
-
listenPort: string;
|
|
69
|
-
/**
|
|
70
|
-
* Port that this service will be exposed externally on, i.e. clients will use this port to invoke APIs on this service.
|
|
71
|
-
*/
|
|
72
|
-
port: string;
|
|
73
|
-
/**
|
|
74
|
-
* Prometheus Cluster Server port (port used for cluster prometheus scrapes). Example: 3011.
|
|
75
|
-
*/
|
|
76
|
-
prometheusClusterPort: string;
|
|
77
|
-
/**
|
|
78
|
-
* Service Name. Example: Rest01
|
|
79
|
-
*/
|
|
80
|
-
serviceName: string;
|
|
81
|
-
/**
|
|
82
|
-
* Service Version. Example: 1.0.0
|
|
83
|
-
*/
|
|
84
|
-
serviceVersion: string;
|
|
85
|
-
/**
|
|
86
|
-
* Determines where logging is output to the console (stdout).
|
|
87
|
-
*/
|
|
88
|
-
consoleLogging: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Determines where logging is output to the logging instrument (if present).
|
|
91
|
-
*/
|
|
92
|
-
instrumentLogging: boolean;
|
|
93
|
-
serviceProcessContext?: IServiceProcessContext;
|
|
94
|
-
/**
|
|
95
|
-
* Factory method that adds express routes to the express app object. Used for non-static content.
|
|
96
|
-
* Non-Static content is applied after logging middleware.
|
|
97
|
-
*/
|
|
98
|
-
expressServerRouteFactory?: ExpressRouteFactory;
|
|
99
|
-
/**
|
|
100
|
-
* Factory method that adds express routes to the express app object for static content.
|
|
101
|
-
* Static content is applied before logging middleware.
|
|
102
|
-
*/
|
|
103
|
-
expressServerRouteStaticFactory?: ExpressRouteFactory;
|
|
104
|
-
/**
|
|
105
|
-
* Determines whether the service will monitor its own health via the /latency API endpoint.
|
|
106
|
-
* Note: The service must implement the /latency end-point for this to work.
|
|
107
|
-
*/
|
|
108
|
-
useLatency: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Determines whether this service is going to need database access.
|
|
111
|
-
*/
|
|
112
|
-
useDatabase: boolean;
|
|
113
|
-
instrumentationObservationInterval: number;
|
|
114
|
-
instrumentationTimeWindow: number;
|
|
115
|
-
useSocketIoRedisAdaptor: boolean;
|
|
116
|
-
socketIoRedisAdaptorUrl?: string;
|
|
117
|
-
useRedisInstrumentationTransport?: boolean;
|
|
118
|
-
redisInstrumentationTransportUrl?: string;
|
|
119
|
-
workerExec?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Is this application using nodejs cluster mode?
|
|
122
|
-
*/
|
|
123
|
-
clusterMode: boolean;
|
|
124
|
-
logger: ISTSLogger;
|
|
125
|
-
publisherLogger: ISTSLogger;
|
|
126
|
-
publishInterval: number;
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=processoptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processoptions.d.ts","sourceRoot":"","sources":["../src/processoptions.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,MAAM,WAAW,gBAAgB;IAChC,IAAI,GAAG,IAAI,OAAO,CAAC,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;AAEtF,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC9B,UAAU,eAAe;IACtB,YAAY,gBAAgB;CAC/B;AAGD,MAAM,WAAW,cAAc;IACvB;;GAED;IACH,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACN,iBAAiB,EAAE,MAAM,CAAA;IAItB,UAAU,EAAE,aAAa,CAAA;IAE5B;;OAEG;IACA,kBAAkB,EAAE,MAAM,CAAA;IAE7B;;OAEG;IACA,0BAA0B,EAAE,MAAM,CAAA;IAElC;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAA;IAE/B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAErB;;OAEG;IACA,iBAAiB,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACA,QAAQ,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACA,OAAO,EAAE,MAAM,CAAA;IAEf;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEf;;OAEG;IACA,qBAAqB,EAAE,MAAM,CAAA;IAEhC;;OAEG;IACA,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEA;IACA,cAAc,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAA;IAI1B,qBAAqB,CAAC,EAAE,sBAAsB,CAAA;IAE9C;;;OAGG;IACH,yBAAyB,CAAC,EAAE,mBAAmB,CAAA;IAE/C;;;OAGG;IACH,+BAA+B,CAAC,EAAE,mBAAmB,CAAA;IAErD;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB,kCAAkC,EAAE,MAAM,CAAA;IAE1C,yBAAyB,EAAE,MAAM,CAAA;IAEjC,uBAAuB,EAAE,OAAO,CAAA;IAEhC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAEhC,gCAAgC,CAAC,EAAE,OAAO,CAAA;IAE1C,gCAAgC,CAAC,EAAE,MAAM,CAAA;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB,MAAM,EAAE,UAAU,CAAA;IAElB,eAAe,EAAE,UAAU,CAAA;IAE3B,eAAe,EAAE,MAAM,CAAA;CAC1B"}
|