Documentation ¶
Index ¶
- type GEContext
- func (geCtx *GEContext) AnyParam(key string) (value string)
- func (geCtx *GEContext) DefaultAnyParam(key string, defaultValue string) (value string)
- func (geCtx *GEContext) EventStream(msg string)
- func (geCtx *GEContext) EventStreamV2(msgChan chan string)
- func (ctx *GEContext) GetCronParam() (params []string)
- func (geCtx *GEContext) GetLoginExtends() (extends string, err error)
- func (geCtx *GEContext) GetLoginID() (userID int64, err error)
- func (geCtx *GEContext) GetTokenExtends(result interface{}) (err error)
- func (geCtx *GEContext) JSON(code int, obj interface{})
- func (geCtx *GEContext) JSON_ECHO(obj interface{})
- func (geCtx *GEContext) ParamAny(key string) (value string)
- func (geCtx *GEContext) ParamArrayInt(key string) (vals []int, err error)
- func (geCtx *GEContext) ParamArrayInt64(key string) (vals []int64, err error)
- func (geCtx *GEContext) ParamBool(key string) (value bool, err error)
- func (geCtx *GEContext) ParamBoolDefault(key string, def bool) (value bool, err error)
- func (geCtx *GEContext) ParamInt(key string) (value int, err error)
- func (geCtx *GEContext) ParamInt64(key string) (value int64, err error)
- func (geCtx *GEContext) ParamInt64Default(key string, def int64) (value int64, err error)
- func (geCtx *GEContext) ParamIntDefault(key string, def int) (value int, err error)
- func (geCtx *GEContext) ParamJson(key string, result interface{}) (err error)
- func (geCtx *GEContext) ParamStringArray(key, sep string) []string
- 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) EventStream ¶ added in v0.1.27
func (*GEContext) EventStreamV2 ¶ added in v0.1.28
func (*GEContext) GetCronParam ¶
GetCronParam 获取定时任务参数
func (*GEContext) GetLoginExtends ¶ added in v0.1.18
func (*GEContext) GetLoginID ¶ added in v0.1.11
func (*GEContext) GetTokenExtends ¶ added in v0.1.22
func (*GEContext) ParamArrayInt ¶ added in v0.1.4
func (*GEContext) ParamArrayInt64 ¶ added in v0.1.4
func (*GEContext) ParamBoolDefault ¶ added in v0.1.3
func (*GEContext) ParamInt64 ¶ added in v0.1.2
func (*GEContext) ParamInt64Default ¶ added in v0.1.3
func (*GEContext) ParamIntDefault ¶ added in v0.1.3
func (*GEContext) ParamStringArray ¶ added in v0.1.23
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.