session

package
v2.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 New

func New(store *storage.Storage, sessionID string) *Session

New returns a new session handler.

func (*Session) FlashErrorMessage

func (s *Session) FlashErrorMessage(message string) string

FlashErrorMessage returns the last flash error message if any.

func (*Session) FlashMessage

func (s *Session) FlashMessage(message string) string

FlashMessage returns the current flash message if any.

func (*Session) NewFlashErrorMessage

func (s *Session) NewFlashErrorMessage(message string)

NewFlashErrorMessage creates a new flash error message.

func (*Session) NewFlashMessage

func (s *Session) NewFlashMessage(message string)

NewFlashMessage creates a new flash message.

func (*Session) SetLanguage

func (s *Session) SetLanguage(language string)

SetLanguage updates the language field in session.

func (*Session) SetLastForceRefresh added in v2.0.51

func (s *Session) SetLastForceRefresh()

func (*Session) SetOAuth2CodeVerifier added in v2.0.48

func (s *Session) SetOAuth2CodeVerifier(codeVerfier string)

func (*Session) SetOAuth2State added in v2.0.48

func (s *Session) SetOAuth2State(state string)

func (*Session) SetPocketRequestToken

func (s *Session) SetPocketRequestToken(requestToken string)

SetPocketRequestToken updates Pocket Request Token.

func (*Session) SetTheme

func (s *Session) SetTheme(theme string)

SetTheme updates the theme field in session.

func (*Session) SetWebAuthnSessionData added in v2.0.51

func (s *Session) SetWebAuthnSessionData(sessionData *model.WebAuthnSession)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL