Documentation ¶
Index ¶
- func Del(c *gin.Context, key string) error
- func EnableCookieSession(key string) gin.HandlerFunc
- func EnableMemorySession(key string) gin.HandlerFunc
- func EnableRedisSession(key string) gin.HandlerFunc
- func Get(c *gin.Context, key string) interface{}
- func GetSessionId(c *gin.Context) (int64, error)
- func Set(c *gin.Context, key string, value interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableCookieSession ¶
func EnableCookieSession(key string) gin.HandlerFunc
使用 Cookie 保存 session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.