session

package
Version: v0.0.0-...-93a054a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

set cookie store variables

Functions

func Configure

func Configure(s Session)

Configure session Setting session values

func Empty

func Empty(sess *sessions.Session)

Empty function delete all session values

func Instance

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

Instance function spawn new session instance

Types

type Session

type Session struct {
	Options   sessions.Options `json:"Options"`
	Name      string           `json:"Name"`
	SecretKey string           `json:"SecretKey"`
}

Session struct Stores session options, name and secret key values

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