Documentation ¶
Overview ¶
Package qsmy is a MySQL back-end for qsess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlStore ¶
func NewMysqlStore(sdb *sql.DB, table string, dataField string, uidField string, cipherkeys ...[]byte) (*qsess.Store, error)
NewMysqlStore creates a new session store, using a MySQL database.
table is the name of a database table to hold session data (it will be created if it doesn't exist).
dataField is an SQL column definition for serialized session data, for example, "VARBINARY(500) NOT NULL".
uidField is an SQL column definition for user ids. It must be indexable and accept []byte values.
cipherkeys are one or more 32-byte encryption keys, to be used with AES-GCM. For encryption, only the first key is used; for decryption all keys are tried (allowing key rotation).
Additional configuration options can be set by manipulating fields in the returned qsess.Store.
Types ¶
This section is empty.