egg-zookeeper
egg plugin for zookeeper
Install
npm i egg-zookeeper --save
Usage
- Install & enable the plugin in egg
// config/plugin.jsexportszookeeper = enable: true package: 'egg-zookeeper' ;
- Create zk client with
app.zk.createClient(connectionString)
api
const client = appzk; client; const path = '/test-path'; { client;} // create a new pathclient;
APIs
Please refer to zookeeper-cluster-client in detail.