Documentation
¶
Overview ¶
Gorilla Sessions backend for Sqlite3.
Copyright (c) 2013 Contributors. See the list of contributors in the CONTRIBUTORS file for details.
This software is licensed under a MIT style license available in the LICENSE file.
Index ¶
- Variables
- type DB
- type Stmt
- type Store
- func (m *Store) Close()
- func (m *Store) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- func (m *Store) Get(r *http.Request, name string) (*sessions.Session, error)
- func (m *Store) New(r *http.Request, name string) (*sessions.Session, error)
- func (m *Store) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionExpired error = errors.New("session expired")
Functions ¶
This section is empty.
Types ¶
type Stmt ¶
type Stmt interface {
Exec(args ...interface{}) (sql.Result, error)
QueryRow(args ...interface{}) *sql.Row
Close() error
}
Stmt is a subset of *sql.Stmt used to create the session. It allows you to pass a modified database via the DB interface for more control around databse connections. For example, you can use this to create concurrent sessions by locking database access.
Click to show internal directories.
Click to hide internal directories.