@r2d2bzh/moleculer-mongo-checker

1.1.0 • Public • Published

moleculer-mongo-checker

This project provides health checkers for moleculer-healthcheck-middleware for projects using moleculer-db-adapter-mongo.

Usage

This project gives createChecker functions to use with moleculer-healthcheck-middleware.

Initialize the Mongo Liveness check

const HealthMiddleware = require('@r2d2bzh/moleculer-healthcheck-middleware');
const MongoHealthcheck = require('@r2d2bzh/moleculer-mongo-healthcheck');

const broker = new ServiceBroker({
  middlewares: [
    middlewares: [HealthMiddleware({
      liveness: {
        createChecker: MongoHealthcheck.createLivenessChecker
      }
    })],
  ],
});

/@r2d2bzh/moleculer-mongo-checker/

    Package Sidebar

    Install

    npm i @r2d2bzh/moleculer-mongo-checker

    Weekly Downloads

    275

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    2.58 kB

    Total Files

    3

    Last publish

    Collaborators

    • radiced
    • furanzujin
    • severine29
    • vivien-lelouette
    • r2d2-bzh
    • gautaz
    • flov22