session

package
v0.0.0-...-c65dae7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Store is the cookie store
	Store *sessions.CookieStore
	// Name is the session name
	Name string
)

Functions

func Configure

func Configure(s Session)

Configure the session cookie store

func Instance

func Instance(r *http.Request) *sessions.Session

Session returns a new session, never returns an error

Types

type Session

type Session struct {
	Options   sessions.Options `json:"Options"`   // Pulled from: http://www.gorillatoolkit.org/pkg/sessions#Options
	Name      string           `json:"Name"`      // Name for: http://www.gorillatoolkit.org/pkg/sessions#CookieStore.Get
	SecretKey string           `json:"SecretKey"` // Key for: http://www.gorillatoolkit.org/pkg/sessions#CookieStore.New
}

Session stores session level information

Jump to

Keyboard shortcuts

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