Versions in this module Expand all Collapse all v1 v1.0.0 Aug 16, 2016 Changes in this version + func NewCookie(name, value string, options *Options) *fasthttp.Cookie + type CookieStore struct + Codecs []securecookie.Codec + Options *Options + func NewCookieStore(keyPairs ...[]byte) *CookieStore + func (s *CookieStore) Get(ctx *fasthttp.RequestCtx, name string) (*Session, error) + func (s *CookieStore) MaxAge(age int) + func (s *CookieStore) Save(ctx *fasthttp.RequestCtx, session *Session) error + type FilesystemStore struct + Codecs []securecookie.Codec + Options *Options + func NewFilesystemStore(path string, keyPairs ...[]byte) *FilesystemStore + func (s *FilesystemStore) Get(ctx *fasthttp.RequestCtx, name string) (*Session, error) + func (s *FilesystemStore) MaxAge(age int) + func (s *FilesystemStore) MaxLength(l int) + func (s *FilesystemStore) Save(ctx *fasthttp.RequestCtx, session *Session) error + type GobSerializer struct + func (s GobSerializer) Deserialize(d []byte, ss *Session) error + func (s GobSerializer) Serialize(ss *Session) ([]byte, error) + type JSONSerializer struct + func (s JSONSerializer) Deserialize(d []byte, ss *Session) error + func (s JSONSerializer) Serialize(ss *Session) ([]byte, error) + type MultiError []error + func (m MultiError) Error() string + type Options struct + Domain string + HttpOnly bool + MaxAge int + Path string + Secure bool + type RediStore struct + Codecs []securecookie.Codec + DefaultMaxAge int + Options *Options + Pool *redis.Pool + func NewRediStore(size int, network, address, password string, keyPairs ...[]byte) (*RediStore, error) + func NewRediStoreWithDB(size int, network, address, password, DB string, keyPairs ...[]byte) (*RediStore, error) + func NewRediStoreWithPool(pool *redis.Pool, keyPairs ...[]byte) (*RediStore, error) + func (s *RediStore) Close() error + func (s *RediStore) Delete(ctx *fasthttp.RequestCtx, session *Session) error + func (s *RediStore) Get(ctx *fasthttp.RequestCtx, name string) (*Session, error) + func (s *RediStore) Save(ctx *fasthttp.RequestCtx, session *Session) error + func (s *RediStore) SetKeyPrefix(p string) + func (s *RediStore) SetMaxAge(v int) + func (s *RediStore) SetMaxLength(l int) + func (s *RediStore) SetSerializer(ss SessionSerializer) + type Session struct + ID string + IsNew bool + Options *Options + Values map[interface{}]interface{} + func NewSession(store Store, name string) *Session + func (s *Session) AddFlash(value interface{}, vars ...string) + func (s *Session) Flashes(vars ...string) []interface{} + func (s *Session) Name() string + func (s *Session) Save(ctx *fasthttp.RequestCtx) error + func (s *Session) Store() Store + type SessionSerializer interface + Deserialize func(d []byte, ss *Session) error + Serialize func(ss *Session) ([]byte, error) + type Store interface + Get func(ctx *fasthttp.RequestCtx, name string) (*Session, error) + Save func(ctx *fasthttp.RequestCtx, s *Session) error