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

Function getConfig

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

Source from the content-addressed store, hash-verified

72}
73
74func getConfig(c *gin.Context) *config.Config {
75 return c.MustGet("config").(*config.Config)
76}
77
78func getCurrentProject(c *gin.Context) *model.Project {
79 return c.MustGet("project").(*model.Project)

Callers 8

applyTokenFunction · 0.85
projectIDInjectFunction · 0.85
userSessionInjectFunction · 0.85
getProjectOAuthCallbackFunction · 0.85
getProjectConfigFunction · 0.85
adminOAuthCallbackFunction · 0.85
adminSessionInjectFunction · 0.85

Calls 1

MustGetMethod · 0.80

Tested by

no test coverage detected