Akka HTTP based etcd client
This module provides a fully asynchronous client for etcd 2.x based on Akka Streams / HTTP.
build.sbt add the following:
libraryDependencies += "me.maciejb.etcd-client" %% "etcd-client" % "0.1.1"
etcd-client is available for Scala 2.11 and Akka 2.4.
import me.maciejb.etcd.client._ /* ActorSystem, ExecutionContext and Materializer have to available implicitly in scope */ val client = EtcdClient(host, port) val responseFut: Future[EtcdResponse] = client.get("/some/key") /* ... */
See EtcdClient.scala source code to get started.
The integration tests require an instance of etcd running. Please use Docker Compose to start it: