Documentation ¶
Index ¶
- func SetStore(newStore *Store)
- type Options
- type Store
- func (st *Store) Cleanup()
- func (st *Store) Get(r *http.Request, name string) (*sessions.Session, error)
- func (st *Store) MaxAge(age int)
- func (st *Store) MaxLength(l int)
- func (st *Store) New(r *http.Request, name string) (*sessions.Session, error)
- func (st *Store) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct { Codecs []securecookie.Codec SessionOpts *sessions.Options // contains filtered or unexported fields }
Store represents an entstore.
func NewOptions ¶
NewOptions creates a new entstore session with options.
func (*Store) MaxAge ¶
MaxAge sets the maximum age for the store and the underlying cookie implementation.
Click to show internal directories.
Click to hide internal directories.