etcdjs-watch
watch etcd keys for changes
Last updated 6 years ago by shtylman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install etcdjs-watch 
SYNC missed versions from official npm registry.

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();

Current Tags

  • 1.1.0                                ...           latest (6 years ago)

5 Versions

  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 3
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |