Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthentication ¶
func GetAuthentication(c *gin.Context) core.Authentication
GetAuthentication 获取身份验证信息
func SetAuthentication ¶
func SetAuthentication(c *gin.Context, auth core.Authentication)
SetAuthentication 设置当前身份验证信息
Types ¶
type Context ¶
Context 自定义 context
func (*Context) GetAuthentication ¶
func (c *Context) GetAuthentication() core.Authentication
GetAuthentication 获取身份验证信息
func (*Context) SetAuthentication ¶
func (c *Context) SetAuthentication(auth core.Authentication)
SetAuthentication 设置当前身份验证信息
Click to show internal directories.
Click to hide internal directories.