@edgeros/etcd3

1.0.2 • Public • Published

@edgeros/etcd3

@edgeros/etcd3 support JSER and Node.js, production-ready client for the Protocol Buffer-based etcd v3 API. It includes:

and is type-safe for TypeScript consumers.

Quickstart

Install via:

npm install --save @edgeros/etcd3

[Node.js also need install grpc manually]
npm install --save grpc

Start building!

const { Etcd3 } = require('@edgeros/etcd3');
const client = new Etcd3();

(async () => {
  await client.put('foo').value('bar');

  const fooValue = await client.get('foo').string();
  console.log('foo was:', fooValue);

  const allFValues = await client.getAll().prefix('f').keys();
  console.log('all our keys starting with "f":', allFValues);

  await client.delete().all();
})();

API Documentation

Our TypeDoc docs are available here.

Our test cases are also readable.

Package Sidebar

Install

npm i @edgeros/etcd3

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Unpacked Size

1.37 MB

Total Files

241

Last publish

Collaborators

  • clarkttfu
  • fu-starslights
  • epmbot
  • xieyuanbin
  • chengyonbin