Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMiddleware ¶
func ToMiddleware(mw func(HandlerWithError) HandlerWithError) func(Handler) Handler
func ToMiddlewareWithError ¶
func ToMiddlewareWithError(mw func(Handler) Handler) func(HandlerWithError) HandlerWithError
Types ¶
type HandlerFunc ¶
type HandlerFunc = http.HandlerFunc
type HandlerWithError ¶
type HandlerWithError interface {
ServeHTTPWithError(http.ResponseWriter, *http.Request) error
}
func ToHandlerWithError ¶
func ToHandlerWithError(h Handler) HandlerWithError
type HandlerWithErrorFunc ¶
type HandlerWithErrorFunc func(http.ResponseWriter, *http.Request) error
func (HandlerWithErrorFunc) ServeHTTP ¶
func (f HandlerWithErrorFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (HandlerWithErrorFunc) ServeHTTPWithError ¶
func (f HandlerWithErrorFunc) ServeHTTPWithError(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.