npac-pdms-hemera-adapter
v1.9.0
Published
npac adapter with pdms api, using Hemera.js
Downloads
12
Readme
npac-pdms-hemera-adapter
About
This is an npac adapter with pdms api, using Hemera.js. This adapter also provides direct nats-level functions.
The adapter can be accessed via the pdms
name, and provides the following properties:
pdms: {
hemera: // The hemera instance
add: // The hemera.add() function
act: // THe hemera.act() function
publish: // The nats.publish() function
subscribe: // The nats.subscribe() function
request: // A NATS-level RPC-like request function
response: // A NATS-level RPC-like response function
}
See the unit tests as an example for the usage of these functions.
Installation
Run the install command:
npm install --save npac-pdms-hemera-adapter
Configuration
This module uses the config.pdms
property to gain its configuration parameters.
The default parameters can be found in src/config.js
:
{
pdms: {
natsUri: process.env.PDMS_NATS_URI || "nats://demo.nats.io:4222"
}
}
Get Help
To learn more about the tool visit the homepage.
References
- npac.
This project was generated from the ncli-archetype project archetype, using the kickoff utility.