Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { context.Context `json:"-" header:"-"` Token string `json:"token" header:"token" example:""` Uid string `json:"uid" header:"-" example:""` IpAddress string `json:"ip_address" header:"-" example:""` UserAgent string `json:"user_agent" header:"-" example:""` }
请求上下文,一般存放请求头参数
func (*Context) GetContext ¶
Click to show internal directories.
Click to hide internal directories.