0.0.18 • Published 7 years ago

@sample-stack/microservice-hemera-plugin v0.0.18

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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
0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago