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

Method Add

base/set.go:151–154  ·  view source on GitHub ↗

Adds a value to a set

(value string)

Source from the content-addressed store, hash-verified

149
150// Adds a value to a set
151func (set Set) Add(value string) Set {
152 set[value] = present{}
153 return set
154}
155
156// Returns a set with any instance of 'str' removed
157func (set Set) Removing(str string) Set {

Callers 15

releaseUnusedSequenceMethod · 0.95
nodeWritesMethod · 0.45
nextBatchMethod · 0.45
startChangesFunction · 0.45
csvStatsFunction · 0.45
heapProfilingFunction · 0.45
mutexProfilingFunction · 0.45
blockProfilingFunction · 0.45
goroutineProfilingFunction · 0.45
vBucketGoroutineMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestDeleteSessionFunction · 0.36
TestMakeSessionCookieFunction · 0.36
TestJWTVerifyTokenFunction · 0.36
TestConcurrentSetConfigFunction · 0.36
TestConcurrentUserWritesFunction · 0.36
addRoleChannelsMethod · 0.36
addRoleMethod · 0.36
TestCacheRaceFunction · 0.36