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

Function getSession

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

Source from the content-addressed store, hash-verified

52}
53
54func getSession(c *gin.Context) *model.Session {
55 return c.MustGet("session").(*model.Session)
56}
57
58func getDeveloperID(c *gin.Context) int64 {
59 return getSession(c).MustGetInt("developer_id")

Callers 6

userCheckRequireLoginFunction · 0.85
userAuthLogoutFunction · 0.85
getDeveloperIDFunction · 0.85
getUserIDFunction · 0.85
adminOAuthLogoutFunction · 0.85
adminCheckFunction · 0.85

Calls 1

MustGetMethod · 0.80

Tested by

no test coverage detected