node-etcd-promise

1.0.8 • Public • Published

node-etcd-promise

A promise wrapper of node-etcd.

example

etcd = new EtcdPromise(etcdServersetcdOpts)
etcd.mkdir(path{ttl: 60prevExist: false}).then =>
  Promise.all [
    etcd.set("#{path}/raw",   JSON.stringify(@info)),
    etcd.set("#{path}/host",  HOST_NAME),
    etcd.set("#{path}/ports"JSON.stringify(@_ports)),
  ]
.catch =>
  etcd.mkdir(path{ttl: 60prevExist: true})
 

Readme

Keywords

none

Package Sidebar

Install

npm i node-etcd-promise

Weekly Downloads

2

Version

1.0.8

License

MIT

Last publish

Collaborators

  • bearice