ingoreMainHandlerName reports whether a main handler of "name" should be ignored and continue to match the next. The ignored main handler names are literals and respects the `ignoreNameHandlers` too.
(name string)
| 281 | // be ignored and continue to match the next. |
| 282 | // The ignored main handler names are literals and respects the `ignoreNameHandlers` too. |
| 283 | func ingoreMainHandlerName(name string) bool { |
| 284 | if IgnoreHandlerName(name) { |
| 285 | // If ignored at all, it can't be the main. |
| 286 | return true |
| 287 | } |
| 288 | |
| 289 | for _, ignore := range ignoreMainHandlerNames { |
| 290 | if name == ignore { |
| 291 | return true |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | return false |
| 296 | } |
| 297 | |
| 298 | // Filter is just a type of func(Context) bool which reports whether an action must be performed |
| 299 | // based on the incoming request. |
no test coverage detected
searching dependent graphs…