(ctx context.Context)
| 426 | } |
| 427 | |
| 428 | func (config *LegacyServerConfig) setupAndValidateDatabases(ctx context.Context) error { |
| 429 | if config == nil { |
| 430 | return nil |
| 431 | } |
| 432 | return SetupAndValidateDatabases(ctx, config.Databases) |
| 433 | } |
| 434 | |
| 435 | // validate validates the given server config and returns all invalid options as a slice of errors |
| 436 | func (config *LegacyServerConfig) validate() (errorMessages error) { |