Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GorillaMuxHandlerInfo ¶
func GorillaMuxHandlerInfo(router *mux.Router) func(r *http.Request) *HandlerInfo
GorillaMuxHandlerInfo takes a mux.Router and finds handler info from it.
func RegisterHandlerInfoFunc ¶
func RegisterHandlerInfoFunc(fn handlerInfoFunc)
func RegisterURLVarExtractor ¶
func RegisterURLVarExtractor(fn parse.URLVarExtractor)
Types ¶
type HandlerInfo ¶
type HandlerInfo struct {
FuncName string
}
func DefaultHandlerInfo ¶
func DefaultHandlerInfo(r *http.Request) *HandlerInfo
type ResponseWriter ¶
type ResponseWriter struct { HandlerInfo HandlerInfo URLVars map[string]string W *httptest.ResponseRecorder // contains filtered or unexported fields }
func NewResponseWriter ¶
func NewResponseWriter(w *httptest.ResponseRecorder, r *http.Request) *ResponseWriter
func (*ResponseWriter) Header ¶
func (rw *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (rw *ResponseWriter) WriteHeader(c int)
Click to show internal directories.
Click to hide internal directories.