maciej / etcd-client Goto Github PK
View Code? Open in Web Editor NEWScala etc.d client
License: Other
Scala etc.d client
License: Other
I'm looking for a way to use etcd from Scala, and just scouting the options.
I call the get method of the client, if the node exist, it works fine, but if the node doesn't exist, it return the following error:
[error] ! return in success
[error] null (EtcdMessage.scala:52)
[error] me.maciejb.etcd.client.EtcdError$.apply(EtcdMessage.scala:52)
[error] me.maciejb.etcd.client.impl.EtcdJsonProtocol$$anon$1.read(EtcdJsonProtocol.scala:30)
[error] me.maciejb.etcd.client.impl.EtcdJsonProtocol$$anon$1.read(EtcdJsonProtocol.scala:15)
[error] spray.json.JsValue.convertTo(JsValue.scala:31)
[error] me.maciejb.etcd.client.impl.EtcdClientImpl$$anonfun$3$$anonfun$apply$4.apply(EtcdClientImpl.scala:127)
[error] me.maciejb.etcd.client.impl.EtcdClientImpl$$anonfun$3$$anonfun$apply$4.apply(EtcdClientImpl.scala:124)
KillSwitch
got introduced in Akka 2.4.3 and at first glance it seems to provide the same functionality as FlowBreaker
. Investigate it:
http://doc.akka.io/japi/akka/2.4.3/akka/stream/KillSwitch.html
Should contain an SBT code snippet with dependency
Currently the project depends on akka-http-experimental
. I'd assume akka-http-core
should be a satisfactory dependency, though.
How to instantiate a EtcdClient
, feature basic interactions with etcd.
I'm using a 3rd party etcd provider and their instances require http auth. Unless I'm missing something in ClientConnectionSettings, I don't believe this is currently possible with your client library (though I really like it otherwise so don't want to switch to another). I was thinking of overriding call in EtcdClientImpl but it seems a bit too abstracted to be simply extended since this is a private method & the class is this impl class is instantiated explicitly in the client factory method. For now I will probably fork & try to add this feature unobtrusively, will be happy to submit a PR.
Get listed here: https://coreos.com/etcd/docs/latest/libraries-and-tools.html
Is there any reason why you don't use a connection pool?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.