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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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