(route *Route, handlersFn []interface{})
| 137 | } |
| 138 | |
| 139 | func 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 |
no test coverage detected
searching dependent graphs…