Documentation
¶
Index ¶
- func SessionProvider() httpsession.SessionProvider
- type MemSessionProvider
- type Session
- func (s *Session) Clear() httpsession.Session
- func (s *Session) Data() map[string]string
- func (s *Session) Delete(key string)
- func (s *Session) Expire() *time.Time
- func (s *Session) GetInt64(key string) int64
- func (s *Session) GetString(key string) string
- func (s *Session) GetStruct(key string, obj interface{})
- func (s *Session) IsExpire() bool
- func (s *Session) PutInt64(key string, value int64) httpsession.Session
- func (s *Session) PutString(key string, value string) httpsession.Session
- func (s *Session) PutStruct(key string, value interface{}) httpsession.Session
- func (s *Session) Reload() httpsession.Session
- func (s *Session) Save() httpsession.Session
- func (s *Session) SetExpire(expire *time.Time) httpsession.Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionProvider ¶
func SessionProvider() httpsession.SessionProvider
Types ¶
type MemSessionProvider ¶
type MemSessionProvider struct {
// contains filtered or unexported fields
}
func (*MemSessionProvider) NewSession ¶
func (s *MemSessionProvider) NewSession(expire *time.Time) httpsession.Session
func (*MemSessionProvider) Session ¶
func (s *MemSessionProvider) Session(key string) httpsession.Session
func (*MemSessionProvider) Sessions ¶
func (s *MemSessionProvider) Sessions() map[string]httpsession.Session
type Session ¶
type Session struct { httpsession.DefaultSession // contains filtered or unexported fields }
func (*Session) Clear ¶
func (s *Session) Clear() httpsession.Session
func (*Session) PutString ¶
func (s *Session) PutString(key string, value string) httpsession.Session
func (*Session) PutStruct ¶
func (s *Session) PutStruct(key string, value interface{}) httpsession.Session
func (*Session) Reload ¶
func (s *Session) Reload() httpsession.Session
func (*Session) Save ¶
func (s *Session) Save() httpsession.Session
Click to show internal directories.
Click to hide internal directories.