egg-etcd
Install
$ npm i egg-etcd --save
Usage
// {app_root}/config/plugin.jsexportseggEtcd = enable: true package: 'egg-etcd';
Configuration
// {app_root}/config/config.default.jsexportseggEtcd = hosts: 'your-etcd-cluster1.host.com' 'your-etcd-cluster2.host.com' 'your-etcd-cluster3.host.com' auth: username: 'your_user_name' password: 'your_password' ;
see config/config.default.js for more detail.
Example
// app.js // get valueappetcd; // watch valueappetcd ;
More Info
This plugin is based on Etcd3, you can read Etcd3 document for more info.
Questions & Suggestions
Please open an issue here.