MCPcopy Create free account
hub / github.com/DoNewsCode/core / ETCD

Struct ETCD

config/remote/etcd/etcd.go:17–21  ·  view source on GitHub ↗

ETCD is a core.ConfProvider and contract.ConfigWatcher implementation to read and watch remote config key. The remote client uses etcd.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected