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

Method assertParamSet

config.go:182–193  ·  view source on GitHub ↗
(param, value string)

Source from the content-addressed store, hash-verified

180}
181
182func (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
195type InlineVerifierConfig struct {
196 // The maximum expected downtime during cutover, in the format of

Callers 1

ValidateMethod · 0.95

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected