Skip to content

bearice/node-etcd-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-etcd-promise

A promise wrapper of node-etcd.

example

etcd = new EtcdPromise(etcdServers, etcdOpts)
etcd.mkdir(path, {ttl: 60, prevExist: 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: 60, prevExist: true})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published