Tecsisa / scala-etcd

Other
4 stars 5 forks source link

scala-etcd

Build Status

A scala client library for etcd.

It uses dispatch to provide asynchronous none blocking HTTP communication with the etcd v2 API.

In order to create an instance of this client, just type:


  val client = EtcdClient.remote("host_ip", [host_port])

port parameter is optional being used 4001 by default. In scenarios where you have a local etcd service, i.e. in a CoreOS cluster, you could just type:


  val client = EtcdClient.local

Usage

In order to use this library, just add the Tecsisa bintray repository to the resolvers list:


  resolvers in ThisBuild += Resolver.url("bintray-tecsisa-repo",
                                     url("http://dl.bintray.com/tecsisa/maven-bintray-repo"))(Resolver.ivyStylePatterns)

And then, just import the dependency:


  libraryDependencies += "com.tecsisa" %% "scala-etcd" % "0.0.1"

Examples of use

Please see the smoke testing for examples of use.

Next Steps