fortune-healthcheck

0.0.1 • Public • Published

fortune-healthcheck

A healthcheck middleware for Fortune

Usage

var healthcheck = require('fortune-healthcheck');
app.use(healthcheck(app.adapter, 'nameOfAResource'));

Healthcheck takes four parameters:

  1. Fortune.adapter object
  2. The name of one of the resources defined in Fortune as a string
  3. A URL that the healthcheck is available on (defaults to /v1/healthcheck)
  4. An error message that is passed to error handling middleware (defaults to Service Healthcheck Failed)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i fortune-healthcheck

Weekly Downloads

2

Version

0.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • blinkmobile