MCPcopy Create free account
hub / github.com/Shopify/ghostferry / Validate

Method Validate

config.go:269–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267}
268
269func (c *IterativeVerifierConfig) Validate() error {
270 if c.MaxExpectedDowntime != "" {
271 _, err := time.ParseDuration(c.MaxExpectedDowntime)
272 if err != nil {
273 return err
274 }
275 }
276
277 if c.Concurrency == 0 {
278 c.Concurrency = 4
279 }
280
281 return nil
282}
283
284type ControlServerConfig struct {
285 // enable/disable http control server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected