Documentation
¶
Index ¶
- func Chain(handler http.HandlerFunc, generators ...Generator) http.HandlerFunc
- func Logging() bool
- func LoggingMiddleware(handlerFunc http.HandlerFunc) http.HandlerFunc
- func NewLoggingMiddleware(next http.HandlerFunc) http.HandlerFunc
- func NewPanicHandler(next http.HandlerFunc) http.HandlerFunc
- func ReMuxParams(r *http.Request) map[string]string
- type Generator
- type HandlerInfo
- type KeyValPair
- type ReMux
- type ReMuxMethodsKey
- type ReMuxParamsKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(handler http.HandlerFunc, generators ...Generator) http.HandlerFunc
func LoggingMiddleware ¶
func LoggingMiddleware(handlerFunc http.HandlerFunc) http.HandlerFunc
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(next http.HandlerFunc) http.HandlerFunc
func NewPanicHandler ¶
func NewPanicHandler(next http.HandlerFunc) http.HandlerFunc
Types ¶
type Generator ¶
type Generator func(handlerFunc http.HandlerFunc) http.HandlerFunc
type HandlerInfo ¶
type HandlerInfo struct {
// contains filtered or unexported fields
}
func (*HandlerInfo) Methods ¶
func (hi *HandlerInfo) Methods(methods ...string) *HandlerInfo
func (*HandlerInfo) Name ¶
func (hi *HandlerInfo) Name(name string) *HandlerInfo
func (*HandlerInfo) Values ¶
func (hi *HandlerInfo) Values(pairs ...KeyValPair) *HandlerInfo
type KeyValPair ¶
type KeyValPair struct { Key interface{} Val interface{} }
type ReMux ¶
type ReMux struct {
// contains filtered or unexported fields
}
func (*ReMux) HandleFunc ¶
func (r *ReMux) HandleFunc(path string, handler http.HandlerFunc) *HandlerInfo
type ReMuxMethodsKey ¶
type ReMuxMethodsKey struct{}
type ReMuxParamsKey ¶
type ReMuxParamsKey struct{}
Click to show internal directories.
Click to hide internal directories.