Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.23 KB

Readme.md

File metadata and controls

38 lines (26 loc) · 1.23 KB

Build Status Download Maven Central GitHub License

A Kotlin Consul client

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")
Usage:

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.