ETCD is a core.ConfProvider and contract.ConfigWatcher implementation to read and watch remote config key. The remote client uses etcd.
| 15 | // ETCD is a core.ConfProvider and contract.ConfigWatcher implementation to read and watch remote config key. |
| 16 | // The remote client uses etcd. |
| 17 | type ETCD struct { |
| 18 | key string |
| 19 | clientConfig clientv3.Config |
| 20 | rev int64 |
| 21 | } |
| 22 | |
| 23 | // Provider create a *ETCD |
| 24 | func Provider(clientConfig clientv3.Config, key string) *ETCD { |
nothing calls this directly
no outgoing calls
no test coverage detected