Documentation
¶
Index ¶
- type Group
- type Request
- func (r *Request) Body() any
- func (r *Request) Form() url.Values
- func (r *Request) Get(param string) interface{}
- func (r *Request) Params() *use.Collection[string, interface{}]
- func (r *Request) Query() url.Values
- func (r *Request) RouteParams() httprouter.Params
- func (r *Request) Validate(rules map[string]interface{}) validation.Validator
- func (r *Request) ValidateStruct(s interface{}) validation.Validator
- type Router
- func (r *Router) AddMiddleware(middleware middleware.Middleware) *Router
- func (r *Router) Any(path string, handler interface{})
- func (r *Router) Connect(path string, handler interface{})
- func (r *Router) Delete(path string, handler interface{})
- func (r *Router) File(path string, file string)
- func (r *Router) Get(path string, handler interface{})
- func (r *Router) Head(path string, handler interface{})
- func (r *Router) Match(path string, handler interface{}, httpMethods ...string)
- func (r *Router) MethodTable() map[string]func(path string, handler interface{})
- func (r *Router) Middleware(middlewares ...middleware.Middleware) *Group
- func (r *Router) Options(path string, handler interface{})
- func (r *Router) Patch(path string, handler interface{})
- func (r *Router) Post(path string, handler interface{})
- func (r *Router) Prefix(prefix string) *Group
- func (r *Router) Put(path string, handler interface{})
- func (r *Router) ServeFiles(path string, fs http.FileSystem)
- func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (r *Router) Static(path string, rootDir string)
- func (r *Router) Trace(path string, handler interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
func NewRequest ¶
func (*Request) RouteParams ¶
func (r *Request) RouteParams() httprouter.Params
func (*Request) Validate ¶
func (r *Request) Validate(rules map[string]interface{}) validation.Validator
func (*Request) ValidateStruct ¶
func (r *Request) ValidateStruct(s interface{}) validation.Validator
type Router ¶
func (*Router) AddMiddleware ¶
func (r *Router) AddMiddleware(middleware middleware.Middleware) *Router
func (*Router) MethodTable ¶
func (*Router) Middleware ¶
func (r *Router) Middleware(middlewares ...middleware.Middleware) *Group
func (*Router) ServeFiles ¶
func (r *Router) ServeFiles(path string, fs http.FileSystem)
Click to show internal directories.
Click to hide internal directories.