Skip to content

xiilei/etcd-clientv3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A etcd client for nodejs (grpc api)

Getting Started

# install google-protobuf package

git clone https://github.com/google/protobuf.git

cd protobuf/js

gulp dist

npm install /path/to/protobuf/js

#Usage

var Etcd = require('etcd-clientv3');

var etcd = new Etcd(['localhost:2379','localhost:22379','localhost:32379']);

//kv
etcd.kv().one('foo',function(err,value){
    //...
});

//watcher
var watcher = etcd.watcher().create('foo','foo2');
watcher.on('error',function(err){
    //...
});

watcher.on('events',function(events){
    //...
});

About

A etcd client for nodejs (grpc api)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published