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

Method Validate

config.go:209–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (c *InlineVerifierConfig) Validate() error {
210 var err error
211 if c.MaxExpectedDowntime != "" {
212 c.maxExpectedDowntime, err = time.ParseDuration(c.MaxExpectedDowntime)
213 if err != nil {
214 return err
215 }
216 } else {
217 c.maxExpectedDowntime = time.Duration(0)
218 }
219
220 if c.VerifyBinlogEventsInterval == "" {
221 c.VerifyBinlogEventsInterval = "1s"
222 }
223
224 c.verifyBinlogEventsInterval, err = time.ParseDuration(c.VerifyBinlogEventsInterval)
225 if err != nil {
226 return err
227 }
228
229 return nil
230}
231
232type IterativeVerifierConfig struct {
233 // List of tables that should be ignored by the IterativeVerifier.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected