1.1.0 • Published 16 days ago

@r2d2bzh/moleculer-mongo-checker v1.1.0

Weekly downloads
76
License
ISC
Repository
-
Last release
16 days ago

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
      }
    })],
  ],
});
1.1.0

16 days ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago