MCPcopy
hub / github.com/hwholiday/learning_tools / WithCluster

Function WithCluster

hconfig/apollo/options.go:31–35  ·  view source on GitHub ↗
(cluster string)

Source from the content-addressed store, hash-verified

29}
30
31func WithCluster(cluster string) Option {
32 return func(o *options) {
33 o.cluster = cluster
34 }
35}
36func WithAddr(addr string) Option {
37 return func(o *options) {
38 o.addr = addr

Callers 2

TestNewHConfig_ApolloFunction · 0.92
TestNewEtcdConfigFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewHConfig_ApolloFunction · 0.74
TestNewEtcdConfigFunction · 0.68