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

Function initAuth

cmd/cql-proxy/init.go:103–112  ·  view source on GitHub ↗
(e *gin.Engine, cfg *config.Config)

Source from the content-addressed store, hash-verified

101}
102
103func initAuth(e *gin.Engine, cfg *config.Config) (authz *auth.AdminAuth) {
104 authz = auth.NewAdminAuth(cfg.AdminAuth)
105
106 e.Use(func(c *gin.Context) {
107 c.Set("auth", authz)
108 c.Next()
109 })
110
111 return
112}
113
114func initTaskManager(e *gin.Engine, cfg *config.Config, db *gorp.DbMap) (tm *task.Manager) {
115 tm = task.NewManager(cfg, db)

Callers 1

initServerFunction · 0.85

Calls 3

NewAdminAuthFunction · 0.92
SetMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected