session

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// Account is the key of account data in the session.
	Account = "Account"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Session added in v1.5.3

type Session interface {
	GetStore() sessions.Store

	Get(c echo.Context) *sessions.Session
	Save(c echo.Context) error
	Delete(c echo.Context) error
	SetValue(c echo.Context, key string, value interface{}) error
	GetValue(c echo.Context, key string) string
	SetAccount(c echo.Context, account *model.Account) error
	GetAccount(c echo.Context) *model.Account
}

Session represents a interface for accessing the session on the application.

func NewSession added in v1.5.3

func NewSession(logger logger.Logger, conf *config.Config) Session

NewSession is constructor.

Jump to

Keyboard shortcuts

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