Versions in this module Expand all Collapse all v0 v0.1.0 Apr 20, 2023 Changes in this version + func NewCookie(name, value string, options *Options) *http.Cookie + func Save(r *http.Request, w http.ResponseWriter) error + type CookieStore struct + Codecs []securecookie.Codec + Options *Options + func NewCookieStore(keyPairs ...[]byte) *CookieStore + func (s *CookieStore) Get(r *http.Request, name string) (*Session, error) + func (s *CookieStore) MaxAge(age int) + func (s *CookieStore) New(r *http.Request, name string) (*Session, error) + func (s *CookieStore) Save(r *http.Request, w http.ResponseWriter, session *Session) error + type FilesystemStore struct + Codecs []securecookie.Codec + Options *Options + func NewFilesystemStore(path string, keyPairs ...[]byte) *FilesystemStore + func (s *FilesystemStore) Get(r *http.Request, name string) (*Session, error) + func (s *FilesystemStore) MaxAge(age int) + func (s *FilesystemStore) MaxLength(l int) + func (s *FilesystemStore) New(r *http.Request, name string) (*Session, error) + func (s *FilesystemStore) Save(r *http.Request, w http.ResponseWriter, session *Session) error + type MultiError []error + func (m MultiError) Error() string + type Options struct + Domain string + HttpOnly bool + MaxAge int + Path string + SameSite http.SameSite + Secure bool + type Registry struct + func GetRegistry(r *http.Request) *Registry + func (s *Registry) Get(store Store, name string) (session *Session, err error) + func (s *Registry) Save(w http.ResponseWriter) error + 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(r *http.Request, w http.ResponseWriter) error + func (s *Session) Store() Store + type Store interface + Get func(r *http.Request, name string) (*Session, error) + New func(r *http.Request, name string) (*Session, error) + Save func(r *http.Request, w http.ResponseWriter, s *Session) error