session

package
v0.0.0-...-c433275 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Middleware = session.Middleware

Functions

func NewStore

func NewStore(secure bool, keyPairs ...[]byte) *sessions.CookieStore

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func GetSession

func GetSession(c echo.Context, key string) (*Session, error)

func (*Session) Add

func (s *Session) Add(key string, value interface{}) bool

func (*Session) Destroy

func (s *Session) Destroy() error

func (*Session) Get

func (s *Session) Get(key string) interface{}

func (*Session) Remove

func (s *Session) Remove(key string) bool

func (*Session) Save

func (s *Session) Save() error

func (*Session) Values

func (s *Session) Values() map[interface{}]interface{}

Jump to

Keyboard shortcuts

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