session

package
Version: v0.0.0-...-ea77c39 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL