Skip to content

Daikon Eureka is a library that add to Daikon the ability to publish on an Eureka Server and discover other services.

License

Notifications You must be signed in to change notification settings

DaikonWeb/daikon-eureka

Repository files navigation

Daikon Eureka

Daikon

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

How to add Daikon Eureka to your project

Gradle

  • 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')

Maven

  • 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>

How to use

To publish your service:

HttpServer()
    .initDiscoveryClient()
    .start()

To discover a service:

HttpServer()
    .initDiscoveryClient()
    .get("/") { _, _, ctx ->
        val service = ctx.discoveryClient().getNextServerFromEureka("onion", false)       
    }
    .start()

Resources

Authors

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

About

Daikon Eureka is a library that add to Daikon the ability to publish on an Eureka Server and discover other services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published