Documentation ¶
Overview ¶
Package mock provides a mock implementation of session store and loader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { ResponseSession string Session *sessions.State SaveError error LoadError error Secret []byte Encrypted bool }
Store is a mock implementation of the SessionStore interface
func (*Store) ClearSession ¶
func (ms *Store) ClearSession(http.ResponseWriter, *http.Request)
ClearSession clears the ResponseSession
func (Store) LoadSession ¶
LoadSession returns the session and a error
func (Store) SaveSession ¶
SaveSession returns a save error.
Click to show internal directories.
Click to hide internal directories.