MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / getUserID

Function getUserID

cmd/cql-proxy/api/utils.go:62–64  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

60}
61
62func getUserID(c *gin.Context) int64 {
63 return getSession(c).MustGetInt("user_id")
64}
65
66func getAdminAuth(c *gin.Context) *auth.AdminAuth {
67 return c.MustGet("auth").(*auth.AdminAuth)

Callers 2

getUserInfoFunction · 0.85
buildExecuteContextFunction · 0.85

Calls 2

getSessionFunction · 0.85
MustGetIntMethod · 0.80

Tested by

no test coverage detected