barakb / consul-client

A Kotlin consul client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Kotlin consul client

License:Apache License 2.0


Languages

Language:Kotlin 100.0%