Skip to content

Mongo checker functions for r2d2bzh/moleculer-healthcheck-middleware

Notifications You must be signed in to change notification settings

FloV22/moleculer-mongo-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moleculer-mongo-checker

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

Usages

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

About

Mongo checker functions for r2d2bzh/moleculer-healthcheck-middleware

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%