Skip to content
This repository was archived by the owner on Feb 18, 2019. It is now read-only.

maciej/etcd-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

223 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scala etc.d client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages