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

Method UserKey

base/constants_syncdocs.go:289–291  ·  view source on GitHub ↗

UserKey returns the key used to store a user document format: _sync:user:{m_$}:{username}

(username string)

Source from the content-addressed store, hash-verified

287//
288// format: _sync:user:{m_$}:{username}
289func (m *MetadataKeys) UserKey(username string) string {
290 return m.userPrefix + m.serializeIfLonger(username)
291}
292
293// UserKeyPrefix returns the prefix used to store a user document
294//

Callers 9

TestMetadataKeyHashFunction · 0.95
DocIDForUserMethod · 0.80
TestDCPKeyFilterFunction · 0.80
TestUserUpdatedAtFieldFunction · 0.80
NewWaiterWithChannelsMethod · 0.80
RefreshUserKeysMethod · 0.80
writeUserDirectFunction · 0.80

Calls 1

serializeIfLongerMethod · 0.95

Tested by 6

TestMetadataKeyHashFunction · 0.76
TestDCPKeyFilterFunction · 0.64
TestUserUpdatedAtFieldFunction · 0.64
writeUserDirectFunction · 0.64