0.0.2 • Published 6 years ago
resilient-eureka-middleware v0.0.2
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