Documentation ¶
Index ¶
- type Context
- func (c *Context) CSRF() string
- func (c *Context) FlashErrorMessage() string
- func (c *Context) FlashMessage() string
- func (c *Context) IsAdminUser() bool
- func (c *Context) IsAuthenticated() bool
- func (c *Context) OAuth2State() string
- func (c *Context) PocketRequestToken() string
- func (c *Context) SessionID() string
- func (c *Context) UserID() int64
- func (c *Context) UserLanguage() string
- func (c *Context) UserSessionToken() string
- func (c *Context) UserTimezone() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context contains helper functions related to the current request.
func (*Context) FlashErrorMessage ¶
FlashErrorMessage returns the message error message if any.
func (*Context) FlashMessage ¶
FlashMessage returns the message message if any.
func (*Context) IsAdminUser ¶
IsAdminUser checks if the logged user is administrator.
func (*Context) IsAuthenticated ¶
IsAuthenticated returns a boolean if the user is authenticated.
func (*Context) OAuth2State ¶
OAuth2State returns the current OAuth2 state.
func (*Context) PocketRequestToken ¶
PocketRequestToken returns the Pocket Request Token if any.
func (*Context) UserLanguage ¶
UserLanguage get the locale used by the current logged user.
func (*Context) UserSessionToken ¶
UserSessionToken returns the current user session token.
func (*Context) UserTimezone ¶
UserTimezone returns the timezone used by the logged user.
Click to show internal directories.
Click to hide internal directories.