Skip to content

drathm/scala-etcd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-etcd

A simple scala client library for etcd

Uses spray http client to implement everything in a none blocking manner. It implements most of v2 api and returns objects to represent the json.

  val client = new EtcdClient("http://localhost:4001")

  client.setKey("configKey", "configValue")

  val response: Future[EtcdResponse] = client.getKey("configKey")

  response onComplete {
    case Success(response: EtcdResponse) =>
      System.out.println(response)
      client.shutdown()
    case Failure(error) =>
      System.out.println(error)
      client.shutdown()
  }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 88.8%
  • Java 11.2%