(e *gin.Engine, cfg *config.Config)
| 101 | } |
| 102 | |
| 103 | func 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 | |
| 114 | func initTaskManager(e *gin.Engine, cfg *config.Config, db *gorp.DbMap) (tm *task.Manager) { |
| 115 | tm = task.NewManager(cfg, db) |
no test coverage detected