Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingHandler ¶
func LoggingHandler(next http.HandlerFunc) http.HandlerFunc
Types ¶
type Generator ¶
type Generator func(http.HandlerFunc) http.HandlerFunc
type GeneratorChain ¶
type GeneratorChain []Generator
func Chain ¶
func Chain(generators ...Generator) GeneratorChain
func ExtendedChain ¶
func ExtendedChain(base GeneratorChain, generators ...Generator) GeneratorChain
func (GeneratorChain) Apply ¶
func (g GeneratorChain) Apply(handler 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.