MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / setupAndValidateDatabases

Method setupAndValidateDatabases

rest/config_legacy.go:428–433  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

426}
427
428func (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
436func (config *LegacyServerConfig) validate() (errorMessages error) {

Calls 1