Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Store sessions.Store
Store holds your cookie store information.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.