Documentation ¶
Index ¶
- type GEContext
- func (geCtx *GEContext) AnyParam(key string) (value string)
- func (geCtx *GEContext) DefaultAnyParam(key string, defaultValue string) (value string)
- func (ctx *GEContext) GetCronParam() (params []string)
- func (geCtx *GEContext) JSON(code int, obj interface{})
- func (geCtx *GEContext) String(code int, format string, values ...interface{})
- type GEForkedContext
- type GEHandleFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GEContext ¶
请求上下文
func (*GEContext) DefaultAnyParam ¶
二次封装gin的取参方法, 支持传入默认值 取不到会返回默认值
func (*GEContext) GetCronParam ¶
GetCronParam 获取定时任务参数
type GEForkedContext ¶
派生上下文, 保障框架的并发安全问题
func WithGEForkedContext ¶
func WithGEForkedContext(parent context.Context) (ctx *GEForkedContext)
派生协程使用GEContext之前必须调用该方法获取一个派生的context
func (*GEForkedContext) Value ¶
func (ctx *GEForkedContext) Value(key interface{}) (value interface{})
Click to show internal directories.
Click to hide internal directories.