Documentation
¶
Index ¶
- type Context
- func (c *Context) GetHeader(key string) string
- func (c *Context) Param(key string) string
- func (c *Context) ParseForm() (url.Values, map[string][]*multipart.FileHeader, error)
- func (c *Context) ParseJSON(v any) error
- func (c *Context) ParseXML(v any) error
- func (c *Context) Query(key string) string
- func (c *Context) Redirect(code int, url string) error
- func (c *Context) Request() *http.Request
- func (c *Context) Response() http.ResponseWriter
- func (c *Context) SendHTML(code int, html string) error
- func (c *Context) SendJSON(code int, v any) error
- func (c *Context) SendStatus(code int) error
- func (c *Context) SendString(code int, s string) error
- func (c *Context) SendXML(code int, v any) error
- func (c *Context) SetHeader(key, value string)
- func (c *Context) Status() int
- func (c *Context) Value(key any) any
- func (c *Context) WithValue(key, value any)
- type ErrorHandler
- type Feather
- func (f *Feather) Delete(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Get(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Group(pathPrefix string, groupMiddlewares ...Middleware) *Group
- func (f *Feather) Head(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Listen(listenAddr string) error
- func (f *Feather) ListenTLS(listenAddr, certFile, keyFile string) error
- func (f *Feather) Options(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Patch(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Post(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) Put(path string, handler Handler, routeMiddlewares ...Middleware)
- func (f *Feather) SetErrorHandler(errorHandler ErrorHandler)
- func (f *Feather) Static(pathPrefix, root string, routeMiddlewares ...Middleware)
- func (f *Feather) Use(middlewares ...Middleware)
- type Group
- func (g *Group) Delete(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Get(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Group(pathPrefix string, groupMiddlewares ...Middleware) *Group
- func (g *Group) Head(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Options(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Patch(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Post(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Put(path string, handler Handler, routeMiddlewares ...Middleware)
- func (g *Group) Static(pathPrefix, root string, routeMiddlewares ...Middleware)
- func (g *Group) Use(middlewares ...Middleware)
- type Handler
- type Json
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) Response ¶
func (c *Context) Response() http.ResponseWriter
func (*Context) SendStatus ¶
type ErrorHandler ¶
type Feather ¶
type Feather struct {
// contains filtered or unexported fields
}
func (*Feather) Delete ¶
func (f *Feather) Delete(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Get ¶
func (f *Feather) Get(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Group ¶
func (f *Feather) Group(pathPrefix string, groupMiddlewares ...Middleware) *Group
func (*Feather) Head ¶
func (f *Feather) Head(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Options ¶
func (f *Feather) Options(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Patch ¶
func (f *Feather) Patch(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Post ¶
func (f *Feather) Post(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) Put ¶
func (f *Feather) Put(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Feather) SetErrorHandler ¶
func (f *Feather) SetErrorHandler(errorHandler ErrorHandler)
func (*Feather) Static ¶
func (f *Feather) Static(pathPrefix, root string, routeMiddlewares ...Middleware)
func (*Feather) Use ¶
func (f *Feather) Use(middlewares ...Middleware)
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) Delete ¶
func (g *Group) Delete(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Get ¶
func (g *Group) Get(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Group ¶
func (g *Group) Group(pathPrefix string, groupMiddlewares ...Middleware) *Group
func (*Group) Head ¶
func (g *Group) Head(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Options ¶
func (g *Group) Options(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Patch ¶
func (g *Group) Patch(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Post ¶
func (g *Group) Post(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Put ¶
func (g *Group) Put(path string, handler Handler, routeMiddlewares ...Middleware)
func (*Group) Static ¶
func (g *Group) Static(pathPrefix, root string, routeMiddlewares ...Middleware)
func (*Group) Use ¶
func (g *Group) Use(middlewares ...Middleware)
type Middleware ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.