(param, value string)
| 180 | } |
| 181 | |
| 182 | func (c *DatabaseConfig) assertParamSet(param, value string) error { |
| 183 | if c.Params == nil { |
| 184 | c.Params = make(map[string]string) |
| 185 | } |
| 186 | |
| 187 | if c.Params[param] != "" && c.Params[param] != value { |
| 188 | return fmt.Errorf("%s must be set to %s", param, value) |
| 189 | } |
| 190 | c.Params[param] = value |
| 191 | |
| 192 | return nil |
| 193 | } |
| 194 | |
| 195 | type InlineVerifierConfig struct { |
| 196 | // The maximum expected downtime during cutover, in the format of |