gin

package
v1.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFunction

func IsFunction(in interface{}, num ...int) bool

IsFunction defined TODO

func JsonCheck

func JsonCheck(req *http.Request) bool

JsonCheck defined TODO

func NewHandler

func NewHandler() core.Handler

func QueryCheck

func QueryCheck(req *http.Request) bool

QueryCheck defined TODO

func UriCheck

func UriCheck(params gin.Params) bool

UriCheck defined TODO

Types

type Context

type Context struct {
	*gin.Context
}

func NewContext

func NewContext(ctx *gin.Context) *Context

func (*Context) Abort

func (c *Context) Abort()

Abort defined TODO

func (*Context) Cookie

func (c *Context) Cookie(name string) (string, error)

Cookie defined TODO

func (*Context) Deadline

func (c *Context) Deadline() (time.Time, bool)

Request defined TODO

func (*Context) Done

func (c *Context) Done() <-chan struct{}

Done defined TODO

func (*Context) Err

func (c *Context) Err() error

Err defined TODO

func (*Context) Fail

func (c *Context) Fail(err error)

Fail defined TODO

func (*Context) File

func (c *Context) File(r io.Reader, filename string, context ...interface{})

File defined TODO

func (*Context) Get

func (c *Context) Get(k string) interface{}

Get defined TODO

func (*Context) GetHeader

func (c *Context) GetHeader(key string) string

GetHeader defined TODO

func (*Context) GetRawData

func (c *Context) GetRawData() ([]byte, error)

GetRawData defined TODO

func (*Context) HTML

func (c *Context) HTML(r io.Reader, context ...interface{})

HTML defined TODO

func (*Context) Header

func (c *Context) Header(key, value string)

Header defined TODO

func (*Context) IsAborted

func (c *Context) IsAborted() bool

IsAborted defined TODO

func (*Context) JSON

func (c *Context) JSON(code int, i interface{})

JSON defined TODO

func (*Context) MultipartForm

func (c *Context) MultipartForm() (*multipart.Form, error)

MultipartForm defined TODO

func (*Context) Next

func (c *Context) Next()

Next defined TODO

func (*Context) Param

func (c *Context) Param(k string) string

Param defined TODO

func (*Context) Query

func (c *Context) Query(k string) string

Query defined TODO

func (*Context) QueryBool

func (ctx *Context) QueryBool(key string, init ...bool) bool

QueryBool defined TODO

func (*Context) QueryInt

func (ctx *Context) QueryInt(key string, init ...int) int

QueryInt defined TODO

func (*Context) QueryRange

func (ctx *Context) QueryRange(key string, init ...string) (string, string)

QueryRange defined TODO

func (*Context) QueryString

func (ctx *Context) QueryString(key string, init ...string) string

QueryString defined TODO

func (*Context) Request

func (c *Context) Request() *http.Request

Request 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) Set

func (c *Context) Set(k string, v interface{})

Set defined TODO

func (*Context) SetCookie

func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool)

SetCookie defined TODO

func (*Context) SetRequest

func (c *Context) SetRequest(r *http.Request)

Request defined TODO

func (*Context) ShouldBindBody

func (c *Context) ShouldBindBody(ptr interface{}) error

ShouldBindBody defined TODO

func (*Context) ShouldBindWith

func (c *Context) ShouldBindWith(v interface{}) error

ShouldBindWith defined TODO

func (*Context) SpanId

func (ctx *Context) SpanId() string

SpanId defined TODO

func (*Context) Status

func (c *Context) Status(code int)

Status defined TODO

func (*Context) String

func (c *Context) String(data string, context ...interface{})

XML defined TODO

func (*Context) Success

func (c *Context) Success(data interface{})

Success defined TODO

func (*Context) TraceId

func (ctx *Context) TraceId() string

TraceId defined TODO

func (*Context) Value

func (c *Context) Value(key interface{}) interface{}

Value defined TODO

func (*Context) Visit

func (ctx *Context) Visit(fn func(key, val string) bool)

Visit defined TODO

func (*Context) XML

func (c *Context) XML(r io.Reader, context ...interface{})

XML defined TODO

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL