session

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

Delete 删除session值

func Destroy

func Destroy(c *gin.Context) error

Destroy 删除session

func Get

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

Get 获取session值

func Set

func Set(c *gin.Context, key string, data interface{}, duration ...int) error

Set 设置session值

Types

This section is empty.

Jump to

Keyboard shortcuts

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