Skip to content

nodecloud/koa-consul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

import Koa from 'koa';
import KoaConsul from 'koa-consul';

let app = new Koa();

app.use(KoaConsul());

API

KoaConsul(options)

  • options.url
  • options.getInfo: a callback function, if you want custom the /health api's response, please implement this function.

Releases

No releases published

Packages

No packages published