Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

resilient-eureka-middleware

0.0.2 • Public • Published

resilient-eureka

resilient.js HTTP client middleware for Eureka.

Via this middleware you can use Eureka as compatible discovery server in Resilient HTTP clients. Greatly inspired by resilient-consul.

Installation

Node.js

Requires Node.js 8+.

npm install resilient-eureka-middleware --save

Usage

// ES2016 modules with babel
import Resilient from 'resilient';
import eureka from 'resilient-eureka-middleware';
 
const client = Resilient({
  discovery: {
    servers: ['http://localhost:8761'],
    headers: {
      Accept: 'application/json'
    }
  }
});
client.use(eureka());
return client;
 

License

MIT

Install

npm i resilient-eureka-middleware

DownloadsWeekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar