MCPcopy Index your code
hub / github.com/CodisLabs/codis / LoadFromFile

Method LoadFromFile

pkg/proxy/config.go:198–204  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

196}
197
198func (c *Config) LoadFromFile(path string) error {
199 _, err := toml.DecodeFile(path, c)
200 if err != nil {
201 return errors.Trace(err)
202 }
203 return c.Validate()
204}
205
206func (c *Config) String() string {
207 var b bytes.Buffer

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected