Documentation
¶
Overview ¶
Package store provides a session store using Bolt.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // SessionOptions represents options for a session. SessionOptions sessions.Options // DBOptions represents options for a database. DBOptions Options }
Config represents a config for a session store.
type Options ¶
type Options struct { // BucketName represents the name of the bucket which contains sessions. BucketName []byte }
Options represents options for a database.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store represents a session store.
func (*Store) Get ¶
Get returns a session for the given name after adding it to the registry.
See gorilla/sessions FilesystemStore.Get().
Example ¶
Output:
Click to show internal directories.
Click to hide internal directories.