Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPHandlerMock ¶
type HTTPHandlerMock struct {
// contains filtered or unexported fields
}
HTTPHandlerMock structure is usead for injecting dependency of type http.Handler.
func (*HTTPHandlerMock) ServeHTTP ¶
func (h *HTTPHandlerMock) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Middleware ¶
Middleware type is an adapter to allow the use of ordinary functions as handlers.
func BodyParser ¶
func BodyParser(v interface{}) Middleware
BodyParser middleware parses body of request to given structure and sets its to context.
Click to show internal directories.
Click to hide internal directories.