rik-health

1.0.0 • Public • Published

rik-health

Health endpoint module for RIK

Requires Express Installed

Usage

npm install rik-health
const setupHealth = require('rik-health');
 
const router = express.Router();
 
function logme(str){
    console.log(str);
}
 
setupHealth(router, '/api/v1/something', '/my/config/dependencies.yml', logme);

Dependencies Schema (uses joi -> joi-json -> joi-yml)

dependencies:
  '@items':
    name: 'string:required'
    endpoint: 'string:required'
    timeout: 'number:required'
    expectedStatusCode: 'number:required'

Readme

Keywords

none

Package Sidebar

Install

npm i rik-health

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0

Unpacked Size

40.6 kB

Total Files

6

Last publish

Collaborators

  • arth