koa-consul
This middleware will set a /health route as default. The consul server will visit /health for acquiring system info and check the service's health status.
Usage
;;let app = ;app;
API
KoaConsul(options)
- options.url
- options.getInfo: a callback function, if you want custom the /health api's response, please implement this function.