MCPcopy Create free account
hub / github.com/kataras/iris / fixRouteInfo

Function fixRouteInfo

core/router/api_container.go:139–145  ·  view source on GitHub ↗
(route *Route, handlersFn []interface{})

Source from the content-addressed store, hash-verified

137}
138
139func fixRouteInfo(route *Route, handlersFn []interface{}) {
140 // Fix main handler name and source modified by execution rules wrapper.
141 route.MainHandlerName, route.MainHandlerIndex = context.MainHandlerName(handlersFn...)
142 if len(handlersFn) > route.MainHandlerIndex {
143 route.SourceFileName, route.SourceLineNumber = context.HandlerFileLineRel(handlersFn[route.MainHandlerIndex])
144 }
145}
146
147// Handler receives a function which can receive dependencies and output result
148// and returns a common Iris Handler, useful for Versioning API integration otherwise

Callers 1

HandleMethod · 0.85

Calls 2

MainHandlerNameFunction · 0.92
HandlerFileLineRelFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…