()
| 9 | var router *gin.Engine |
| 10 | |
| 11 | func init() { |
| 12 | // 初始化配置 |
| 13 | initialize.InitConfig() |
| 14 | // 初始化缓存 |
| 15 | initialize.InitCache() |
| 16 | // 初始化代理 |
| 17 | initialize.InitProxy() |
| 18 | // 初始化账号 |
| 19 | initialize.InitAuth() |
| 20 | // 初始化gin |
| 21 | router = initialize.InitRouter() |
| 22 | } |
| 23 | |
| 24 | func Listen(w http.ResponseWriter, r *http.Request) { |
| 25 | router.ServeHTTP(w, r) |
nothing calls this directly
no test coverage detected