Documentation ¶
Index ¶
- func Migrate(db *sql.DB) error
- type QLStore
- func (db *QLStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- func (db *QLStore) Get(r *http.Request, name string) (*sessions.Session, error)
- func (db *QLStore) MaxAge(age int)
- func (db *QLStore) New(r *http.Request, name string) (*sessions.Session, error)
- func (db *QLStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QLStore ¶
type QLStore struct { Codecs []securecookie.Codec Options *sessions.Options // contains filtered or unexported fields }
QLStore is the session storage implementation for gorilla/sessions using embedded SQL database(ql).
func NewQLStore ¶
NewQLStore initillizes QLStore with the given keyPairs
func (*QLStore) Get ¶
Get fetches a session for a given name after it has been added to the registry.
func (*QLStore) MaxAge ¶
MaxAge sets the maximum age for the store and the underlying cookie implementation. Individual sessions can be deleted by setting Options.MaxAge = -1 for that session.
Click to show internal directories.
Click to hide internal directories.