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

Method validate

rest/config.go:751–753  ·  view source on GitHub ↗

validate checks the DbConfig for any invalid or unsupported values and return a http error. If validateReplications is true, return an error if any replications are not valid. Otherwise issue a warning.

(ctx context.Context, validateOIDCConfig, validateReplications bool)

Source from the content-addressed store, hash-verified

749
750// validate checks the DbConfig for any invalid or unsupported values and return a http error. If validateReplications is true, return an error if any replications are not valid. Otherwise issue a warning.
751func (dbConfig *DbConfig) validate(ctx context.Context, validateOIDCConfig, validateReplications bool) error {
752 return dbConfig.validateVersion(ctx, base.IsEnterpriseEdition(), validateOIDCConfig, validateReplications)
753}
754
755func (dbConfig *DbConfig) validateVersion(ctx context.Context, isEnterpriseEdition, validateOIDCConfig, validateReplications bool) error {
756

Calls 2

validateVersionMethod · 0.95
IsEnterpriseEditionFunction · 0.92