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

Method DocIDForRole

auth/auth.go:979–981  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

977}
978
979func (a *Authenticator) DocIDForRole(name string) string {
980 return a.MetaKeys.RoleKey(name)
981}
982
983func (a *Authenticator) DocIDForUserEmail(email string) string {
984 return a.MetaKeys.UserEmailKey(email)

Callers 6

NewRoleMethod · 0.95
NewRoleNoChannelsMethod · 0.95
GetRoleIncDeletedMethod · 0.95
InvalidateChannelsMethod · 0.95
TestRoleKeysHashFunction · 0.80
TestInvalidateChannelsFunction · 0.80

Calls 1

RoleKeyMethod · 0.80

Tested by 2

TestRoleKeysHashFunction · 0.64
TestInvalidateChannelsFunction · 0.64