Nuked: Probably Microwaved

    komg-hc

    1.0.5 • Public • Published

    komg-hc

    NPM Version

    komg healthy check.

    Install

    npm i komg-hc -S

    Usage

     
    const { createServer } = require('http');
     
    const server = createServer();
    const port = 3000;
    server.listen(port);
     
    server.on('error', err => {
      console.error(err);
    });
     
    server.on('listening', () => {
      console.log(`env:${process.env.NODE_ENV},listening on ${port} ..`);
    });
     
    require('komg-hc')
      .reserve(env === 'prod' ? 'redis://172.0.0.1:6379/0' : 'redis://127.0.0.1:6379/0')
      .check(server);
     
    module.exports = server;
     

    Install

    npm i komg-hc

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    3.23 kB

    Total Files

    3

    Last publish

    Collaborators

    • cooperhsiung