Daikon Eureka is a library that add to Daikon the ability to publish on an Eureka Server and discover other services.
The main goals are:
- Use Daikon applications ina a Spring Cloud Netflix system
- Make Eureka integration easiest as possible
- Add JitPack in your root build.gradle at the end of repositories:
repositories {
...
maven { url 'https://jitpack.io' }
}
- Add the dependency
implementation('com.github.DaikonWeb:daikon-eureka:1.9.0')
- Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
- Add the dependency
<dependency>
<groupId>com.github.DaikonWeb</groupId>
<artifactId>daikon-eureka</artifactId>
<version>1.9.0</version>
</dependency>
HttpServer()
.initDiscoveryClient()
.start()
HttpServer()
.initDiscoveryClient()
.get("/") { _, _, ctx ->
val service = ctx.discoveryClient().getNextServerFromEureka("onion", false)
}
.start()
- Documentation: https://daikonweb.github.io
- Examples: https://github.com/DaikonWeb/daikon-examples
- Eureka project: https://github.com/Netflix/eureka
- Spring Cloud Netflix: https://spring.io/projects/spring-cloud-netflix
This project is licensed under the Apache License 2.0 - see the LICENSE file for details