@container-stack/hemera-brigade-gw-plugin
v0.0.9-20
Published
This is Container Configuration Service hemera plugin
Downloads
61
Readme
hemera-counter
Your plugin description
Prerequisites
Example
'use strict'
const Hemera = require('nats-hemera')
const plugin = require('hemera-counter')
const nats = require('nats').connect()
const hemera = new Hemera(nats, {
logLevel: 'info'
})
hemera.use(plugin)
hemera.ready(() => {
hemera.act({
topic: 'counter',
cmd: 'add',
a: 1,
b: 2
}, function (err, resp) {
this.log.info(resp, 'Result')
})
})
Test
npm run test
Code coverage
npm run coverage
Linting
npm run lint