Documentation ¶
Overview ¶
Package SpringGin 封装 github.com/gin-gonic/gin 实现的 Web 框架
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinContext ¶
GinContext 将 web.Context 转换为 *gin.Context
Types ¶
type Context ¶
type Context struct { *web.BaseContext // contains filtered or unexported fields }
Context 适配 gin 的 Web 上下文
func (*Context) NativeContext ¶
func (ctx *Context) NativeContext() interface{}
NativeContext 返回封装的底层上下文对象
func (*Context) PathParamNames ¶
PathParamNames returns path parameter names.
func (*Context) PathParamValues ¶
PathParamValues returns path parameter values.
type Response ¶ added in v1.1.1
type Response struct {
gin.ResponseWriter
}
func (*Response) Get ¶ added in v1.1.1
func (resp *Response) Get() http.ResponseWriter
func (*Response) Set ¶ added in v1.1.1
func (resp *Response) Set(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.