echo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDCookieName          = "session-id-cookie-name-echo-session"
	DefaultSessionExpires = 60 * 15
)
View Source
const (
	DefaultSessionContextKey = "default session context key"
)

Variables

This section is empty.

Functions

func GetSession

func GetSession(c echo.Context) session.Session

func SetSession

func SetSession(c echo.Context, s session.Session)

Types

type Manager

type Manager struct {
	MaxAge int
	// contains filtered or unexported fields
}

func Default

func Default() *Manager

func New

func New(node int64, expiresInSeconds int) *Manager

func (*Manager) ActivateSession

func (ca *Manager) ActivateSession(c echo.Context, s session.Session)

func (Manager) CreateSession

func (ca Manager) CreateSession(c echo.Context) session.Session

func (Manager) FindSession

func (ca Manager) FindSession(c echo.Context) (session.Session, bool)

func (*Manager) Handler

func (ca *Manager) Handler() echo.MiddlewareFunc

func (Manager) SetSessionIDCookie

func (ca Manager) SetSessionIDCookie(c echo.Context, session session.Session)

Jump to

Keyboard shortcuts

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