session

package
v0.0.0-...-c285f8c Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSession

func ClearSession(c *gin.Context)

ClearSession 清空 session

func DeleteSession

func DeleteSession(c *gin.Context, key string)

DeleteSession 删除 session

func GetSession

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

GetSession 从 session 获取 key 对应的值

func SetSession

func SetSession(c *gin.Context, kvMap map[string]interface{})

SetSession 保存键值对到 session 中

Types

This section is empty.

Jump to

Keyboard shortcuts

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