Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapF ¶
func WrapF(f http.HandlerFunc) httprouter.Handle
Types ¶
type Middleware ¶
type Middleware func(httprouter.Handle) httprouter.Handle
func WrapM ¶
func WrapM(sm StdFuncMiddlware) Middleware
func WrapS ¶
func WrapS(sm StdMiddlware) Middleware
type MuxGroup ¶
type MuxGroup struct {
// contains filtered or unexported fields
}
func NewGroup ¶
func NewGroup(basePath string, middlewares ...Middleware) *MuxGroup
func (*MuxGroup) R ¶
func (g *MuxGroup) R(r RegisterFunc, p string, handle httprouter.Handle)
func (*MuxGroup) Use ¶
func (g *MuxGroup) Use(middlewares ...Middleware)
type RegisterFunc ¶
type RegisterFunc func(path string, handle httprouter.Handle)
type StdFuncMiddlware ¶
type StdFuncMiddlware func(http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.