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

Method RoleKey

base/constants_syncdocs.go:303–305  ·  view source on GitHub ↗

RoleKey returns the key used to store a role document format: _sync:role:{m_$}:{rolename}

(name string)

Source from the content-addressed store, hash-verified

301//
302// format: _sync:role:{m_$}:{rolename}
303func (m *MetadataKeys) RoleKey(name string) string {
304 return m.rolePrefix + m.serializeIfLonger(name)
305}
306
307// RoleKeyPrefix returns the prefix used to store a role document
308//

Callers 6

DocIDForRoleMethod · 0.80
TestRoleUpdatedAtFieldFunction · 0.80
NewWaiterWithChannelsMethod · 0.80
RefreshUserKeysMethod · 0.80

Calls 1

serializeIfLongerMethod · 0.95

Tested by 3

TestRoleUpdatedAtFieldFunction · 0.64