session

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 6 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 {
	SetContext(c echo.Context)
	Get() *sessions.Session
	Save() error
	Delete() error
	SetValue(key string, value interface{}) error
	GetValue(key string) string
	SetAccount(account *model.Account) error
	GetAccount() *model.Account
}

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

func NewSession added in v1.5.3

func NewSession() Session

NewSession is constructor.

Jump to

Keyboard shortcuts

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