session

package
v0.0.0-...-d827859 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(c *gin.Context, key string) error

func EnableCookieSession

func EnableCookieSession(key string) gin.HandlerFunc

使用 Cookie 保存 session

func EnableMemorySession

func EnableMemorySession(key string) gin.HandlerFunc

使用 内存 保存 session

func EnableRedisSession

func EnableRedisSession(key string) gin.HandlerFunc

使用 Redis 保存 session

func Get

func Get(c *gin.Context, key string) interface{}

func GetSessionId

func GetSessionId(c *gin.Context) (int64, error)

func Set

func Set(c *gin.Context, key string, value interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL