session

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultStore

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

func NewDefaultStore

func NewDefaultStore(key string) *DefaultStore

func (*DefaultStore) Get

func (s *DefaultStore) Get(r *http.Request) (*Session, error)

func (*DefaultStore) Save

type Session

type Session struct {
	ID     string
	Values map[string]interface{}
}

func NewSession

func NewSession() *Session

func (*Session) AddFlash

func (s *Session) AddFlash(value interface{})

func (*Session) GetFlash

func (s *Session) GetFlash() []interface{}

type Store

type Store interface {
	Get(r *http.Request) (*Session, error)
	Save(w http.ResponseWriter) error
}

Jump to

Keyboard shortcuts

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