Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidId = errors.New("boltstore: invalid session id")
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { ID string `boltholdKey:"ID"` Data string Modified time.Time `boltholdIndex:"Modified"` }
Session object store in BoltDB
type Store ¶
type Store struct { Codecs []securecookie.Codec Options *sessions.Options // contains filtered or unexported fields }
BoltStore stores sessions in BoltDB
func (*Store) Get ¶
Get registers and returns a session for the given name and session store. It returns a new session if there are no sessions registered for the name.
func (*Store) MaxAge ¶
MaxAge sets the maximum age for the store and the underlying cookie implementation. Individual sessions can be deleted by setting Options.MaxAge = -1 for that session.
Click to show internal directories.
Click to hide internal directories.