Versions in this module Expand all Collapse all v0 v0.12.5 Mar 4, 2020 v0.12.4 Mar 3, 2020 v0.12.3 Feb 7, 2019 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.2 Dec 13, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.1 Dec 8, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.0 Dec 2, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work Changes in this version + var ErrSessionStoreIsNil = errors.New("security/session: store value is nil") + func AddStore(name string, store Storer) error + func ReleaseSession(s *Session) + type FileStore struct + func (f *FileStore) Cleanup(m *Manager) + func (f *FileStore) Delete(id string) error + func (f *FileStore) Init(cfg *config.Config) error + func (f *FileStore) IsExists(id string) bool + func (f *FileStore) Read(id string) string + func (f *FileStore) Save(id, value string) error + type Manager struct + func NewManager(appCfg *config.Config) (*Manager, error) + func (m *Manager) Decode(value string, dst interface{}) error + func (m *Manager) DecodeToSession(encodedStr string) (*Session, error) + func (m *Manager) DecodeToString(encodedStr string) (string, error) + func (m *Manager) DeleteSession(w http.ResponseWriter, s *Session) error + func (m *Manager) Encode(value interface{}) (string, error) + func (m *Manager) GetSession(r *http.Request) *Session + func (m *Manager) IsCookieStore() bool + func (m *Manager) IsPath(p string) bool + func (m *Manager) IsStateful() bool + func (m *Manager) NewSession() *Session + func (m *Manager) SaveSession(w http.ResponseWriter, s *Session) error + type Session struct + CreatedTime *time.Time + ID string + IsAuthenticated bool + IsNew bool + Values map[string]interface{} + func (s *Session) Clear() + func (s *Session) Del(key string) + func (s *Session) Get(key string) interface{} + func (s *Session) GetBool(key string) bool + func (s *Session) GetFlash(key string) interface{} + func (s *Session) GetFloat32(key string) float32 + func (s *Session) GetFloat64(key string) float64 + func (s *Session) GetInt(key string) int + func (s *Session) GetInt64(key string) int64 + func (s *Session) GetString(key string) string + func (s *Session) IsKeyExists(key string) bool + func (s *Session) Reset() + func (s *Session) Set(key string, value interface{}) + func (s *Session) SetFlash(key string, value interface{}) + func (s Session) String() string + type Storer interface + Cleanup func(m *Manager) + Delete func(id string) error + Init func(appCfg *config.Config) error + IsExists func(id string) bool + Read func(id string) string + Save func(id, value string) error