Documentation
¶
Index ¶
- func RandSessionId() string
- type CookieStore
- type Session
- func (s *Session) Delete(key string)
- func (s *Session) Destroy(w http.ResponseWriter) error
- func (s *Session) Get(key string) (interface{}, error)
- func (s *Session) GetBool(key string) (bool, error)
- func (s *Session) GetBoolArray(key string) ([]bool, error)
- func (s *Session) GetInt(key string) (int, error)
- func (s *Session) GetInt32(key string) (int32, error)
- func (s *Session) GetInt32Array(key string) ([]int32, error)
- func (s *Session) GetInt64(key string) (int64, error)
- func (s *Session) GetInt64Array(key string) ([]int64, error)
- func (s *Session) GetIntArray(key string) ([]int, error)
- func (s *Session) GetString(key string) (string, error)
- func (s *Session) GetStringArray(key string) ([]string, error)
- func (s *Session) GetUint(key string) (uint, error)
- func (s *Session) GetUint32(key string) (uint32, error)
- func (s *Session) GetUint32Array(key string) ([]uint32, error)
- func (s *Session) GetUint64(key string) (uint64, error)
- func (s *Session) GetUint64Array(key string) ([]uint64, error)
- func (s *Session) GetUintArray(key string) ([]uint, error)
- func (s *Session) Save(w http.ResponseWriter) error
- func (s *Session) Set(key string, val interface{})
- func (s *Session) SetMap(m map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandSessionId ¶
func RandSessionId() string
Types ¶
type CookieStore ¶
type CookieStore struct { sessions.CookieStore SessionCache *cache.Cache // contains filtered or unexported fields }
func DefaultCookieStore ¶
func DefaultCookieStore() (*CookieStore, error)
func NewCookieStore ¶
func NewCookieStore(autoUpdate bool, keyPairsFile string) (*CookieStore, error)
func (*CookieStore) GenerateKeyPairs ¶
func (store *CookieStore) GenerateKeyPairs()
func (*CookieStore) GetKeyPairs ¶
func (store *CookieStore) GetKeyPairs() [][]byte
func (*CookieStore) LoadKeyPairs ¶
func (store *CookieStore) LoadKeyPairs(keyPairs [][]byte)
Click to show internal directories.
Click to hide internal directories.