Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/couchbase/sync_gateway
/ DocIDForUser
Method
DocIDForUser
auth/auth.go:975–977 ·
view source on GitHub ↗
(username string)
Source
from the content-addressed store, hash-verified
973
}
974
975
func
(a *Authenticator) DocIDForUser(username string) string {
976
return
a.MetaKeys.UserKey(username)
977
}
978
979
func
(a *Authenticator) DocIDForRole(name string) string {
980
return
a.MetaKeys.RoleKey(name)
Callers
11
GetUser
Method · 0.95
InvalidateChannels
Method · 0.95
InvalidateRoles
Method · 0.95
InvalidateRolesAndChannels
Method · 0.95
defaultGuestUser
Method · 0.95
NewUser
Method · 0.95
NewUserNoChannels
Method · 0.95
TestUserKeysHash
Function · 0.80
TestInvalidateRoles
Function · 0.80
TestInvalidateChannels
Function · 0.80
TestUserWithoutSessionUUID
Function · 0.80
Calls
1
UserKey
Method · 0.80
Tested by
4
TestUserKeysHash
Function · 0.64
TestInvalidateRoles
Function · 0.64
TestInvalidateChannels
Function · 0.64
TestUserWithoutSessionUUID
Function · 0.64