@git-stack/hemera-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.10.3-alpha.1 • 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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @git-stack/hemera-plugin

    Weekly Downloads

    0

    Version

    0.10.3-alpha.1

    License

    MIT

    Unpacked Size

    37.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • git-stack
    • lyuda-cdmbase