SetSourceLine sets the route's source caller, useful for debugging. Returns the `Route` itself.
(fileName string, lineNumber int)
| 237 | // SetSourceLine sets the route's source caller, useful for debugging. |
| 238 | // Returns the `Route` itself. |
| 239 | func (r *Route) SetSourceLine(fileName string, lineNumber int) *Route { |
| 240 | r.SourceFileName = fileName |
| 241 | r.SourceLineNumber = lineNumber |
| 242 | return r |
| 243 | } |
| 244 | |
| 245 | // RestoreStatus will try to restore the status of this route instance, i.e if `SetStatusOffline` called on a "GET" route, |
| 246 | // then this function will make this route available with "GET" HTTP Method. |