Documentation ¶
Index ¶
- type Session
- func (s *Session) FlashErrorMessage() string
- func (s *Session) FlashMessage() string
- func (s *Session) NewFlashErrorMessage(message string)
- func (s *Session) NewFlashMessage(message string)
- func (s *Session) NewOAuth2State() string
- func (s *Session) SetLanguage(language string)
- func (s *Session) SetPocketRequestToken(requestToken string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session handles session data.
func (*Session) FlashErrorMessage ¶
FlashErrorMessage returns the last flash error message if any.
func (*Session) FlashMessage ¶
FlashMessage returns the current flash message if any.
func (*Session) NewFlashErrorMessage ¶
NewFlashErrorMessage creates a new flash error message.
func (*Session) NewFlashMessage ¶
NewFlashMessage creates a new flash message.
func (*Session) NewOAuth2State ¶
NewOAuth2State generates a new OAuth2 state and stores the value into the database.
func (*Session) SetLanguage ¶
SetLanguage updates language field in session.
func (*Session) SetPocketRequestToken ¶
SetPocketRequestToken updates Pocket Request Token.
Click to show internal directories.
Click to hide internal directories.