@xterm-stack/microservice-nats
TypeScript icon, indicating that this package has built-in type declarations

0.0.18-48 • Public • Published

hemera-container-manager

Your plugin description

Requirements

Make sure to set following environment properties

    process.env.CLOUDFLARE_EMAIL,
    process.env.CLOUDFLARE_KEY,
    process.env.CLOUDFLARE_ZONE_ID,

Prerequisites

Install and run NATS Server

Example

'use strict'

const Hemera = require('nats-hemera')
const Plugin = require('hemera-container-manager')
const nats = require('nats').connect()

const hemera = new Hemera(nats, {
  logLevel: 'info'
})

hemera.use(Plugin)

hemera.ready(() => {
  hemera.act({
    topic: 'container-manager',
    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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.18-481latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.18-481
0.0.18-470
0.0.18-460
0.0.18-450
0.0.18-430
0.0.18-410
0.0.18-400
0.0.18-390
0.0.18-380
0.0.18-370
0.0.18-360
0.0.18-350
0.0.18-340
0.0.18-310
0.0.18-300
0.0.18-290
0.0.18-280
0.0.18-270
0.0.18-260
0.0.18-250
0.0.18-210
0.0.18-200
0.0.18-190
0.0.18-180
0.0.18-170
0.0.18-160
0.0.18-150
0.0.18-140
0.0.18-130
0.0.18-120
0.0.18-110
0.0.18-100
0.0.18-90
0.0.18-80
0.0.18-70
0.0.18-60
0.0.18-50
0.0.18-30
0.0.18-20
0.0.18-10
0.0.18-00
0.0.170
0.0.161
0.0.16-110
0.0.16-90
0.0.16-80
0.0.16-70
0.0.16-60
0.0.16-30
0.0.16-20
0.0.16-11
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.60
0.0.50
0.0.43
0.0.30
0.0.20

Package Sidebar

Install

npm i @xterm-stack/microservice-nats

Weekly Downloads

6

Version

0.0.18-48

License

MIT

Unpacked Size

31.6 kB

Total Files

9

Last publish

Collaborators

  • xterm-stack