Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CassandraStore ¶
type CassandraStore struct { ClusterConfig *gocql.ClusterConfig Codecs []securecookie.Codec Options *sessions.Options TableName string }
CassandraStore stores sessions in a Cassandra database.
func NewCassandraStore ¶
func NewCassandraStore(config *gocql.ClusterConfig, tableName string, keypairs ...[]byte) (*CassandraStore, error)
NewCassandraStore creates, and returns a new *CassandraStore. tableName lets you specify the name of the table which sessions should be stored in. If tableName is left as an empty string, it will default to "sessions".
The only session options set by this function are sessions.Options.Path to "/", and sessions.Options.MaxAge to 2592000 (30 days).
The connection to the database is not checked by this function.
func (*CassandraStore) Save ¶
func (c *CassandraStore) Save(r *http.Request, w http.ResponseWriter, s *sessions.Session) error
Click to show internal directories.
Click to hide internal directories.