MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / init

Function init

api/router.go:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9var router *gin.Engine
10
11func 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
24func Listen(w http.ResponseWriter, r *http.Request) {
25 router.ServeHTTP(w, r)

Callers

nothing calls this directly

Calls 5

InitConfigFunction · 0.92
InitCacheFunction · 0.92
InitProxyFunction · 0.92
InitAuthFunction · 0.92
InitRouterFunction · 0.92

Tested by

no test coverage detected