maciej / etcd-client   0.2.0

GitHub

Scala etc.d client

Scala versions: 2.11

Akka HTTP based etcd client

Maven Central Build Status

This module provides a fully asynchronous client for etcd 2.x based on Akka Streams / HTTP.

Getting started

In your 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.

Usage

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.

Running tests

The integration tests require an instance of etcd running. Please use Docker Compose to start it:

docker-compose up

Resources