1.4.1 • Published 4 years ago

etcd3-ts v1.4.1

Weekly downloads
44
License
MIT
Repository
github
Last release
4 years ago

etcd3-ts

NPM version Build Status Coverage Status

This is an etcd client. It's very incomplete.

Usage

$ npm install etcd3-ts

Then in your code:

import { EtcdClient } from 'etcd3-ts';
import { delay } from 'promise-tools';

const client = new EtcdClient('localhost:2379');

async myFunction() {
  await client.withLock('mylock', async () => {
    console.log('Do work here...');
    await delay(2000);
  });
}

How to build this?

Checkout etcd, and then run genGrpc.sh.

$ git clone git@github.com:etcd-io/etcd.git
$ cd etcd
$ git checkout v3.4.9
$ cd ..
$ ./scripts/genGrpc.sh
$ npm run build
1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago