1.1.0 • Published 9 years ago

etcdjs-watch v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

etcdjs-watch

Watch etcd keys for changes. Requires etcdjs for the backend.

var ectd = require('etcdjs');
var EtcdWatch = require('etcdjs-watch');

var etcd = Etcd();

var watcher = EtcdWatch(etcd, '/some/key', { options });

watcher.on('set', function(result) {
});

watcher.on('update', function(result) {
});

watcher.on('delete', function(result) {
});

// start watching
watcher.start();

// sometime later if you want..
//watcher.stop();
1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago