1.1.0 • Published 1 year ago

@r2d2bzh/moleculer-mongo-checker v1.1.0

Weekly downloads
76
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

5 years ago