watch-consul
A simple utility for watching a JSON key on a consul server and triggering a callback initially and whenever a change occurs.
Last updated 3 years ago by caseywebdev .
Original npm · Tarball · package.json
$ cnpm install watch-consul 
SYNC missed versions from official npm registry.

watch-consul

A simple utility for watching a JSON key on a consul server and triggering a callback initially and whenever a change occurs.

import watchConsul from 'watch-consul';

const watch = () =>
  watchConsul({url: 'my-consul-server:8500', key: '/my/key/to/watch'})
    .then(console.log.bind(console))
    .catch(console.error.bind(console))
    .then(watch);

watch();

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

3 Versions

  • 0.1.0                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |