Documentation
¶
Overview ¶
Package core @Author Bing @Date 2023/9/26 21:09:00 @Desc
Package core @Author Bing @Date 2023/10/7 17:04:00 @Desc
Package core @Author Bing @Date 2023/9/26 21:09:00 @Desc
Package core @Author Bing @Date 2023/10/16 12:27:00 @Desc
Package core @Author Bing @Date 2023/9/26 21:09:00 @Desc
Package core @Author Bing @Date 2023/10/9 17:41:00 @Desc
Package core @Author Bing @Date 2023/10/11 13:20:00 @Desc
Index ¶
- func Parsers(s string) []string
- type Context
- func (c *Context) Data(code int, data []byte)
- func (c *Context) HTML(code int, name string, data any)
- func (c *Context) JSON(obj config.H)
- func (c *Context) MultipartFile() (*multipart.Form, error)
- func (c *Context) Next()
- func (c *Context) Param(key string) any
- func (c *Context) PostFile(name string) (*multipart.FileHeader, error)
- func (c *Context) PostForm(key string) string
- func (c *Context) SaveUploadFile(fileHeader *multipart.FileHeader, fp string) error
- func (c *Context) SetHeader(rType string)
- func (c *Context) String(code int, format string, data ...config.H)
- type Engine
- type Group
- func (g *Group) AddRoute(method, path string, handle Handle)
- func (g *Group) DELETE(path string, handle Handle)
- func (g *Group) GET(path string, handle Handle)
- func (g *Group) NewGroup(prefix string) *Group
- func (g *Group) POST(path string, handle Handle)
- func (g *Group) PUT(path string, handle Handle)
- func (g *Group) Static(path string)
- func (g *Group) Use(handle Handle)
- type Handle
- type Route
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context @Description: request response Context management
func (*Context) SaveUploadFile ¶
func (c *Context) SaveUploadFile(fileHeader *multipart.FileHeader, fp string) error
type Engine ¶
type Engine struct { //*Route `json:"route"` *Trie `json:"trie"` *Group Address string `json:"address"` Port string `json:"port"` // contains filtered or unexported fields }
Engine @Description: 核心组件: 主要承载 官方组件 http server(实现 server 接口)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.