Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bytebase/bytebase
/ GetUserFromContext
Function
GetUserFromContext
backend/api/v1/common.go:416–419 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
414
}
415
416
func
GetUserFromContext(ctx context.Context) (*store.UserMessage, bool) {
417
user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)
418
return
user, ok
419
}
Callers
15
SetupSample
Method · 0.85
CreateRollout
Method · 0.85
BatchRunTasks
Method · 0.85
BatchSkipTasks
Method · 0.85
BatchCancelTaskRuns
Method · 0.85
CreateRelease
Method · 0.85
preCheckAccess
Method · 0.85
SearchQueryHistories
Method · 0.85
GetQueryHistory
Method · 0.85
getUser
Method · 0.85
SearchProjects
Method · 0.85
CreateProject
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected