()
| 207 | } |
| 208 | |
| 209 | func (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 | |
| 232 | type IterativeVerifierConfig struct { |
| 233 | // List of tables that should be ignored by the IterativeVerifier. |
nothing calls this directly
no outgoing calls
no test coverage detected