Documentation ¶
Index ¶
- func IsFunction(in interface{}, num ...int) bool
- func JsonCheck(req *http.Request) bool
- func NewHandler() core.Handler
- func QueryCheck(req *http.Request) bool
- func UriCheck(params gin.Params) bool
- type Context
- func (c *Context) Abort()
- func (c *Context) Cookie(name string) (string, error)
- func (c *Context) Deadline() (time.Time, bool)
- func (c *Context) Done() <-chan struct{}
- func (c *Context) Err() error
- func (c *Context) Fail(err error)
- func (c *Context) File(r io.Reader, filename string, context ...interface{})
- func (c *Context) Get(k string) interface{}
- func (c *Context) GetHeader(key string) string
- func (c *Context) GetRawData() ([]byte, error)
- func (c *Context) HTML(r io.Reader, context ...interface{})
- func (c *Context) Header(key, value string)
- func (c *Context) IsAborted() bool
- func (c *Context) JSON(code int, i interface{})
- func (c *Context) MultipartForm() (*multipart.Form, error)
- func (c *Context) Next()
- func (c *Context) Param(k string) string
- func (c *Context) Query(k string) string
- func (ctx *Context) QueryBool(key string, init ...bool) bool
- func (ctx *Context) QueryInt(key string, init ...int) int
- func (ctx *Context) QueryRange(key string, init ...string) (string, string)
- func (ctx *Context) QueryString(key string, init ...string) string
- func (c *Context) Request() *http.Request
- func (c *Context) ResponseWriter() http.ResponseWriter
- func (ctx *Context) SaveUploadedFile(file *multipart.FileHeader, dst string) error
- func (c *Context) Set(k string, v interface{})
- func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool)
- func (c *Context) SetRequest(r *http.Request)
- func (c *Context) ShouldBindBody(ptr interface{}) error
- func (c *Context) ShouldBindWith(v interface{}) error
- func (ctx *Context) SpanId() string
- func (c *Context) Status(code int)
- func (c *Context) String(data string, context ...interface{})
- func (c *Context) Success(data interface{})
- func (ctx *Context) TraceId() string
- func (c *Context) Value(key interface{}) interface{}
- func (ctx *Context) Visit(fn func(key, val string) bool)
- func (c *Context) XML(r io.Reader, context ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type Context ¶
func NewContext ¶
func (*Context) MultipartForm ¶
MultipartForm defined TODO
func (*Context) QueryRange ¶
QueryRange defined TODO
func (*Context) QueryString ¶
QueryString defined TODO
func (*Context) ResponseWriter ¶
func (c *Context) ResponseWriter() http.ResponseWriter
Request defined TODO
func (*Context) SaveUploadedFile ¶
func (ctx *Context) SaveUploadedFile(file *multipart.FileHeader, dst string) error
TypeQuery defined failt result
func (*Context) SetCookie ¶
func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool)
SetCookie defined TODO
func (*Context) ShouldBindBody ¶
ShouldBindBody defined TODO
func (*Context) ShouldBindWith ¶
ShouldBindWith defined TODO
Click to show internal directories.
Click to hide internal directories.