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 ¶
- type DB
- type SqliteStore
- func (m *SqliteStore) Close()
- func (m *SqliteStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- func (m *SqliteStore) Get(r *http.Request, name string) (*sessions.Session, error)
- func (m *SqliteStore) New(r *http.Request, name string) (*sessions.Session, error)
- func (m *SqliteStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- type Stmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqliteStore ¶
type SqliteStore struct {
Codecs []securecookie.Codec
Options *sessions.Options
// contains filtered or unexported fields
}
func (*SqliteStore) Close ¶
func (m *SqliteStore) Close()
func (*SqliteStore) Delete ¶
func (m *SqliteStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
func (*SqliteStore) Save ¶
func (m *SqliteStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
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.