@onlineapps/conn-orch-registry 1.1.13 → 1.1.14
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 +10 -10
- package/package.json +6 -6
- package/src/registryClient.js +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# @onlineapps/
|
|
1
|
+
# @onlineapps/conn-orch-registry
|
|
2
2
|
|
|
3
|
-
[](https://github.com/onlineapps/conn-orch-registry/actions)
|
|
4
|
+
[](https://codecov.io/gh/onlineapps/conn-orch-registry)
|
|
5
|
+
[](https://www.npmjs.com/package/@onlineapps/conn-orch-registry)
|
|
6
6
|
|
|
7
7
|
> A lightweight client for microservice registration, heartbeat, and API description exchange via RabbitMQ.
|
|
8
8
|
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
## 📦 Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install @onlineapps/
|
|
20
|
+
npm install @onlineapps/conn-orch-registry
|
|
21
21
|
# or
|
|
22
|
-
yarn add @onlineapps/
|
|
22
|
+
yarn add @onlineapps/conn-orch-registry
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## 🔧 Quick Start
|
|
@@ -28,7 +28,7 @@ yarn add @onlineapps/connector-registry-client
|
|
|
28
28
|
// Load environment, if using .env
|
|
29
29
|
require('dotenv').config();
|
|
30
30
|
|
|
31
|
-
const { ServiceRegistryClient, EVENTS } = require('@onlineapps/
|
|
31
|
+
const { ServiceRegistryClient, EVENTS } = require('@onlineapps/conn-orch-registry');
|
|
32
32
|
|
|
33
33
|
const client = new ServiceRegistryClient({
|
|
34
34
|
amqpUrl: process.env.AMQP_URL,
|
|
@@ -107,12 +107,12 @@ Configuration can be provided via environment variables or constructor options:
|
|
|
107
107
|
|
|
108
108
|
## 🛠️ API Reference
|
|
109
109
|
|
|
110
|
-
See [docs/api.md](https://github.com/onlineapps/
|
|
110
|
+
See [docs/api.md](https://github.com/onlineapps/conn-orch-registry/blob/main/docs/api.md) for full details on classes, methods, and events.
|
|
111
111
|
|
|
112
112
|
## 📖 Documentation
|
|
113
113
|
|
|
114
|
-
* Architecture overview: [docs/architecture.md](https://github.com/onlineapps/
|
|
115
|
-
* API reference: [docs/api.md](https://github.com/onlineapps/
|
|
114
|
+
* Architecture overview: [docs/architecture.md](https://github.com/onlineapps/conn-orch-registry/blob/main/docs/architecture.md)
|
|
115
|
+
* API reference: [docs/api.md](https://github.com/onlineapps/conn-orch-registry/blob/main/docs/api.md)
|
|
116
116
|
* Examples: [examples/basicUsage.js](https://github.com/onlineapps/agent-registry-client/blob/main/examples/basicUsage.js)
|
|
117
117
|
|
|
118
118
|
## 🔗 Related Documentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-registry",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@onlineapps/conn-base-storage": "^1.0.0",
|
|
42
|
-
"amqplib": "^0.10.
|
|
43
|
-
"axios": "^1.
|
|
44
|
-
"dotenv": "^16.1
|
|
45
|
-
"ioredis": "^5.
|
|
42
|
+
"amqplib": "^0.10.9",
|
|
43
|
+
"axios": "^1.12.2",
|
|
44
|
+
"dotenv": "^16.6.1",
|
|
45
|
+
"ioredis": "^5.8.0",
|
|
46
46
|
"joi": "^17.9.2",
|
|
47
|
-
"uuid": "^9.0.
|
|
47
|
+
"uuid": "^9.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@semantic-release/changelog": "^6.0.3",
|
package/src/registryClient.js
CHANGED
|
@@ -29,7 +29,7 @@ class ServiceRegistryClient extends EventEmitter {
|
|
|
29
29
|
* @param {string} [opts.specificationEndpoint='/api/v1/specification'] - Endpoint where API specification is available
|
|
30
30
|
* @param {number} [opts.heartbeatInterval=10000] - Heartbeat interval in milliseconds
|
|
31
31
|
* @param {string} [opts.apiQueue='api_services_queuer'] - Queue name for heartbeat and API traffic
|
|
32
|
-
* @param {string} [opts.registryQueue='
|
|
32
|
+
* @param {string} [opts.registryQueue='registry.register'] - Queue name for registry messages
|
|
33
33
|
* @param {Object} [opts.validationProof=null] - Validation proof object {hash, data} (injected from outside)
|
|
34
34
|
*/
|
|
35
35
|
constructor({ amqpUrl, serviceName, version, specificationEndpoint = '/api/v1/specification',
|