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

Function Provider

config/remote/etcd/etcd.go:24–29  ·  view source on GitHub ↗

Provider create a *ETCD

(clientConfig clientv3.Config, key string)

Source from the content-addressed store, hash-verified

22
23// Provider create a *ETCD
24func 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.

Callers 3

WithKeyFunction · 0.85
TestRemoteFunction · 0.85
TestErrorFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRemoteFunction · 0.68
TestErrorFunction · 0.68