@vidaxl/microservice-status-handler

0.0.15 • Public • Published

motivation

To avoid typing the same boring lines per microservice. You use it like this in the status handler:

const statusAggregator = require('status-aggregator');
const configGetter = require('./helpers/config');
const statusHandler = require('@vidaxl/microservice-status-handler');

module.exports = statusHandler
  .name('product-catalog-service')
  .configGetter(configGetter)
  .statusAggregator(statusAggregator)();

dependencies

@vidaxl/status-aggregator-vidaxl-config-bridge Please note, that this library dependes on @vidaxl/config-getter-for-microservices, if you want to use it please add that to your package.json like:

    "@vidaxl/config-getter-for-microservices": "latest",
    "@vidaxl/microservice-status-handler": "latest"

Also this piece of software has a dependency, the @vidaxl/status-aggregator-vidaxl-config-bridge.

Please always install the latest from all as those will be backward compatible.

If you are implementing this library, please make sure that you copy/overwrite the .npmrc file with the one you find in the MICRO-49 branch of the product-catalog-service soon it will be in the master too.

Readme

Keywords

none

Package Sidebar

Install

npm i @vidaxl/microservice-status-handler

Weekly Downloads

4

Version

0.0.15

License

ISC

Unpacked Size

3.05 kB

Total Files

3

Last publish

Collaborators

  • vidaxl-devops
  • vidaxl-ro
  • vidaxl.com
  • yaxandr
  • mirokal