Provider create a *ETCD
(clientConfig clientv3.Config, key string)
| 22 | |
| 23 | // Provider create a *ETCD |
| 24 | func Provider(clientConfig clientv3.Config, key string) *ETCD { |
| 25 | return &ETCD{ |
| 26 | key: key, |
| 27 | clientConfig: clientConfig, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // WithKey is a two-in-one coreOption. It uses the remote key on etcd as the |
| 32 | // source of configuration, and watches the change of that key for hot reloading. |
no outgoing calls