session

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 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 delete session key

func Destroy

func Destroy(c *gin.Context) error

Destroy destroy session

func Get

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

Get get session key - value

func Set

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

Set set session key - value, duration: seconds

func Start

func Start()

Start start session

Types

This section is empty.

Jump to

Keyboard shortcuts

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