MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / Load

Function Load

internal/routes/routes.go:23–33  ·  view source on GitHub ↗
(log *zap.Logger, r *gin.Engine)

Source from the content-addressed store, hash-verified

21}
22
23func Load(log *zap.Logger, r *gin.Engine) {
24 log = log.Named("routes")
25 defer log.Sugar().Info("Loaded all API Routes")
26 route := &Route{Name: "/", Engine: r}
27 route.Init(r)
28 Type := reflect.TypeOf(&allRoutes{log})
29 Value := reflect.ValueOf(&allRoutes{log})
30 for i := 0; i < Type.NumMethod(); i++ {
31 Type.Method(i).Func.Call([]reflect.Value{Value, reflect.ValueOf(route)})
32 }
33}

Callers 1

getRouterFunction · 0.92

Calls 1

InitMethod · 0.95

Tested by

no test coverage detected