AdminHandler is like http.Handler except ServeHTTP may return an error. If any handler encounters an error, it should be returned for proper handling.
| 1358 | // If any handler encounters an error, it should be returned for proper |
| 1359 | // handling. |
| 1360 | type AdminHandler interface { |
| 1361 | ServeHTTP(http.ResponseWriter, *http.Request) error |
| 1362 | } |
| 1363 | |
| 1364 | // AdminHandlerFunc is a convenience type like http.HandlerFunc. |
| 1365 | type AdminHandlerFunc func(http.ResponseWriter, *http.Request) error |
no outgoing calls
no test coverage detected