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

Function BucketNameCtx

base/logging_context.go:199–203  ·  view source on GitHub ↗

BucketNameCtx extends the parent context with a bucket name.

(parent context.Context, bucketName string)

Source from the content-addressed store, hash-verified

197
198// BucketNameCtx extends the parent context with a bucket name.
199func BucketNameCtx(parent context.Context, bucketName string) context.Context {
200 newCtx := getLogCtx(parent)
201 newCtx.Bucket = bucketName
202 return LogContextWith(parent, &newCtx)
203}
204
205// CollectionCtx extends the parent context with a collection name.
206func CollectionLogCtx(parent context.Context, scopeName, collectionName string) context.Context {

Callers 9

FetchConfigsMethod · 0.92
cbgtRootCAsProviderFunction · 0.85
bucketCtxFunction · 0.85
TestLogFormatFunction · 0.85
TestCtxWorkflowFunction · 0.85
removeOldTestBucketsMethod · 0.85
createTestBucketsMethod · 0.85
bucketReadierWorkerMethod · 0.85

Calls 2

getLogCtxFunction · 0.85
LogContextWithFunction · 0.85

Tested by 2

TestLogFormatFunction · 0.68
TestCtxWorkflowFunction · 0.68