MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / Default

Function Default

config/config.go:82–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func Default() *Config {
83 c := &Config{
84 Etcd: &etcd.Config{
85 Addrs: []string{"127.0.0.1:2379"},
86 },
87 Controller: &ControllerConfig{
88 FailOver: DefaultFailOverConfig(),
89 },
90 }
91 c.Addr = c.getAddr()
92 return c
93}
94
95func (c *Config) Validate() error {
96 if c.Controller.FailOver.MaxPingCount < 3 {

Callers 2

mainFunction · 0.92

Calls 2

getAddrMethod · 0.95
DefaultFailOverConfigFunction · 0.85

Tested by 1