Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Load(ctx context.Context, id string) (updatedAt time.Time, data []byte, err error) Insert(ctx context.Context, id string, data []byte) error Update(ctx context.Context, id string, data []byte) error Delete(ctx context.Context, id string) error }
Database describes a session store database interface.
type SQLStore ¶
SQLStore stores gorilla sessions in a database.
func New ¶
New returns a new SQLStore. The keyPairs are used in the same way as the gorilla sessions CookieStore.
Directories ¶
Path | Synopsis |
---|---|
Package pgdb provides a sqlstore.Database implementation for a PostgreSQL database accessed through the standard library database/sql package.
|
Package pgdb provides a sqlstore.Database implementation for a PostgreSQL database accessed through the standard library database/sql package. |
Package pgxdb provides a sqlstore.Database implementation for a PostgreSQL database accessed through the github.com/jackc/pgx package.
|
Package pgxdb provides a sqlstore.Database implementation for a PostgreSQL database accessed through the github.com/jackc/pgx package. |
Click to show internal directories.
Click to hide internal directories.