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

Function CreateBootstrapConnectionFromStartupConfig

rest/main.go:381–387  ·  view source on GitHub ↗
(ctx context.Context, config *StartupConfig, bucketConnectionMode base.BucketConnectionMode)

Source from the content-addressed store, hash-verified

379}
380
381func CreateBootstrapConnectionFromStartupConfig(ctx context.Context, config *StartupConfig, bucketConnectionMode base.BucketConnectionMode) (base.BootstrapConnection, error) {
382 opts := bootstrapConnectionOpts{
383 bucketConnectionMode: bucketConnectionMode,
384 }
385 setBootstrapConnectionOptsFromStartupConfig(&opts, config)
386 return createBootstrapConnectionWithOpts(ctx, opts)
387}
388
389type bootstrapConnectionOpts struct {
390 server string