bletcd - The Bloglovin' etcd client
Bletcd is a minimalistic etcd client with convenient functionality for watching for changes.
Usage
var client = ; var watcher = client;watcher;watcher; client;
Output:
Notified of change: { action: 'set', node: { key: '/test/other-key', value: 'a-value', modifiedIndex: 537, createdIndex: 537 } }Wrote a value to etcdSuccessfully fetched the key value: a-valueNotified of change: { action: 'delete', node: { key: '/test/other-key', modifiedIndex: 538, createdIndex: 537 }, prevNode: { key: '/test/other-key', value: 'a-value', modifiedIndex: 537, createdIndex: 537 } }Successfully deleted value