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

Function bootstrapConnectionOptsConfigs

rest/main.go:404–409  ·  view source on GitHub ↗

bootstrapConnectionOptsConfigs returns a bootstrapConnectionOpts struct with values populated from the startup and db configs.

(startupConfig *StartupConfig, dbConfig DbConfig)

Source from the content-addressed store, hash-verified

402
403// bootstrapConnectionOptsConfigs returns a bootstrapConnectionOpts struct with values populated from the startup and db configs.
404func bootstrapConnectionOptsConfigs(startupConfig *StartupConfig, dbConfig DbConfig) bootstrapConnectionOpts {
405 var opts bootstrapConnectionOpts
406 setBootstrapConnectionOptsFromStartupConfig(&opts, startupConfig)
407 setBootstrapConnectionOptsFromDbConfig(&opts, dbConfig)
408 return opts
409}
410
411// setBootstrapConnectionOptsFromStartupConfig sets the bootstrapConnectionOpts struct with values from the startup config.
412func setBootstrapConnectionOptsFromStartupConfig(opts *bootstrapConnectionOpts, config *StartupConfig) {

Tested by

no test coverage detected