sessions

package
v0.0.0-...-d78814b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Store holds your cookie store information.

Functions

func Get

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

Get returns the current request's session.

func Middleware

func Middleware(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Middleware gets the Gorilla session store and makes it available on the Request context.

Middleware is the first custom middleware applied, so it takes the current datetime to make available later in the request and stores it on the request context.

func SetSecretKey

func SetSecretKey(keyPairs ...[]byte)

SetSecretKey initializes a session cookie store with the secret key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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