dwwoelfel / cetcd Goto Github PK
View Code? Open in Web Editor NEWClojure wrapper for etcd
License: Eclipse Public License 1.0
Clojure wrapper for etcd
License: Eclipse Public License 1.0
Thanks for this library, it's been helpful.
One minor point; attempting to use characters that are not allowed in URLs as arguments to the functions seems to fail. For example, (etcd/set-key! "foo bar" 123 )
gives URISyntaxException Illegal character in path at index 33: http://127.0.0.1:4001/v2/keys/foo bar java.net.URI$Parser.fail (URI.java:2829)
.
Can we alter the library to URL encode all strings before making them into URLs?
Could we extend delete-key! to support the backend's prevValue and prevExists? (https://github.com/coreos/etcd/blob/master/server/v2/delete_handler.go#L19)
I got this working with something like:
(etcd/api-req :delete (->> key url-encode (format "keys/%s"))
:query-params {:prevValue old-value})
I'm not sure how you want to integrate the optional :prevValue argument into the cetcd API...
Add type annotations? Only helps if users of the library use type annotations.
When sending a write command to an etcd node that is not the leader (due to e.g. failover), the etcd node replies with a 307 redirect to the new leader. Unfortunately, these redirects are not implemented in http-kit versions lower than 2.1.16, so the current release of cetcd silently fails when directed to perform a write operation if it is not talking directly to the leader.
This can be fixed by bumping http-kit to 2.1.16 in project.clj.
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.