Documentation
¶
Index ¶
- Constants
- func AuthMiddleware(c *gin.Context)
- func GetUserId(ctx *gin.Context) (userId int64, err error)
- func InitSession(provider string, addr string, options ...string) (err error)
- func IsLogin(ctx *gin.Context) (login bool)
- func ProcessRequest(ctx *gin.Context)
- func ProcessResponse(ctx *gin.Context)
- func SetUserId(userId int64, ctx *gin.Context)
Constants ¶
View Source
const ( CookieSessionId = "session_id" CookieMaxAge = 30 * 24 * 3600 )
View Source
const ( MercuryUserId = "user_id" MercuryUserLoginStatus = "login_status" MercurySessionName = "mercury_session" )
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func ProcessRequest ¶
func ProcessResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.