A Kotlin lightweight fully async consul client with minimal dependencies.
To consume this project using maven add the following to your pom.xml
<dependency>
<groupId>com.github.barakb</groupId>
<artifactId>consul-client</artifactId>
<version>0.9.3</version>
</dependency>
Or gradle
implementation("com.github.barakb:consul-client:0.9.3")
To create a Nomad client Kotlin DSL can be used.
val client = ConsulClient {
address = "http://127.0.0.1:4646"
}
Https address can be used as well.