Documentation ¶
Index ¶
- func Param(req *http.Request, param string) string
- type Group
- func (g *Group) Any(path string, fn http.HandlerFunc)
- func (g *Group) Delete(path string, fn http.HandlerFunc)
- func (g *Group) Get(path string, fn http.HandlerFunc)
- func (g *Group) Handler(method, path string, handler http.Handler)
- func (g *Group) HandlerFunc(method, path string, fn http.HandlerFunc)
- func (g *Group) Head(path string, fn http.HandlerFunc)
- func (g *Group) Options(path string, fn http.HandlerFunc)
- func (g *Group) Patch(path string, fn http.HandlerFunc)
- func (g *Group) Post(path string, fn http.HandlerFunc)
- func (g *Group) Put(path string, fn http.HandlerFunc)
- func (g *Group) Use(middlewares ...Middleware)
- type Middleware
- type Router
- func (r *Router) Any(path string, fn http.HandlerFunc)
- func (r *Router) Delete(path string, fn http.HandlerFunc)
- func (r *Router) Get(path string, fn http.HandlerFunc)
- func (r *Router) Group(path string, fn func(*Group))
- func (r *Router) Handler(method, path string, handler http.Handler)
- func (r *Router) HandlerFunc(method, path string, fn http.HandlerFunc)
- func (r *Router) Head(path string, fn http.HandlerFunc)
- func (r *Router) Options(path string, fn http.HandlerFunc)
- func (r *Router) Patch(path string, fn http.HandlerFunc)
- func (r *Router) Post(path string, fn http.HandlerFunc)
- func (r *Router) Put(path string, fn http.HandlerFunc)
- func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (r *Router) Use(path string, middlewares ...Middleware)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) HandlerFunc ¶
func (g *Group) HandlerFunc(method, path string, fn http.HandlerFunc)
func (*Group) Use ¶
func (g *Group) Use(middlewares ...Middleware)
type Router ¶
type Router struct { NotFound http.Handler MethodNotAllowed http.Handler Panic http.Handler // contains filtered or unexported fields }
func (*Router) HandlerFunc ¶
func (r *Router) HandlerFunc(method, path string, fn http.HandlerFunc)
func (*Router) Use ¶
func (r *Router) Use(path string, middlewares ...Middleware)
Click to show internal directories.
Click to hide internal directories.