package
0.0.1-alpha
Repository: https://github.com/ms-xy/go-gin-extras.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DefaultSessionMiddleware is a convenience wrapper around SessionMiddleware that creates a mysqlstore based on the environment variable MYSQL_DATASOURCE.
GetSession returns the session object associated with the current request context.
SessionMiddleware creates a session middleware wrapper using scs.Manager with the provided scs.Store as the backing session storage.

# Constants

No description provided by the author

# Variables

HandlePanic indicates whether or not the session middleware will handle its own panics or not.
MySqlDataSource is the parameter used for creation of the store when calling DefaultSessionMiddleware().
SessionCookie is the name of the session cookie used, defaults to 'session'.
SessionDomain is the name of the domain associated with the session cookie.
SessionHttpOnly sets wether the cookie be accessible via javascript.
seconds, 30 mins default.
seconds, 24 hour default.
SessionSecure sets wether or not the cookie should be https only.