session

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKey = "sessionstore"
)

Variables

This section is empty.

Functions

func SessionHandler

func SessionHandler(name, secret string) gin.HandlerFunc

Types

type Session

type Session interface {
	Get(key interface{}) interface{}
	GetAll() interface{}
	Set(key interface{}, val interface{})
	Delete(key interface{})
	Clear()
	Options(sessions.Options)
	Save() error
}

func RetrieveSession

func RetrieveSession(c *gin.Context) Session

function to retrieve the session in gin-gonic

Jump to

Keyboard shortcuts

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