Documentation ¶
Index ¶
- Constants
- Variables
- type Api
- type App
- type Authentication
- func (a *Authentication) CreateAuthenticatedSession(ctx echo.Context) error
- func (a *Authentication) CreatePasswordReset(ctx echo.Context) error
- func (a *Authentication) CreateResetPassword(ctx echo.Context) error
- func (a *Authentication) StoreAuthenticatedSession(ctx echo.Context) error
- func (a *Authentication) StorePasswordReset(ctx echo.Context) error
- func (a *Authentication) StoreResetPassword(ctx echo.Context) error
- type Dashboard
- type FlashStorage
- type Handlers
- type PasswordResetTokenPayload
- type Registration
- type ResetPasswordPayload
- type Resource
- type Sitemap
- type StoreAuthenticatedSessionPayload
- type StorePasswordResetPayload
- type StoreUserPayload
- type URL
Constants ¶
View Source
const ( SessIsAuthName = "is_authenticated" SessUserID = "user_id" SessUserEmail = "user_email" SessIsAdmin = "is_admin" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func (*Authentication) CreateAuthenticatedSession ¶
func (a *Authentication) CreateAuthenticatedSession(ctx echo.Context) error
func (*Authentication) CreatePasswordReset ¶
func (a *Authentication) CreatePasswordReset(ctx echo.Context) error
func (*Authentication) CreateResetPassword ¶
func (a *Authentication) CreateResetPassword(ctx echo.Context) error
func (*Authentication) StoreAuthenticatedSession ¶
func (a *Authentication) StoreAuthenticatedSession(ctx echo.Context) error
func (*Authentication) StorePasswordReset ¶
func (a *Authentication) StorePasswordReset(ctx echo.Context) error
func (*Authentication) StoreResetPassword ¶
func (a *Authentication) StoreResetPassword(ctx echo.Context) error
type FlashStorage ¶
type FlashStorage struct {
// contains filtered or unexported fields
}
func NewCookieStore ¶
func NewCookieStore(sessionKey string) FlashStorage
func (FlashStorage) CreateFlashMsg ¶
func (cs FlashStorage) CreateFlashMsg( r *http.Request, rw http.ResponseWriter, key string, args ...string, ) error
func (FlashStorage) GetFlashMessages ¶
func (cs FlashStorage) GetFlashMessages( r *http.Request, rw http.ResponseWriter, key string, ) ([]string, error)
type Handlers ¶
type Handlers struct { Api Api App App Authentication Authentication Dashboard Dashboard Registration Registration }
type PasswordResetTokenPayload ¶
type PasswordResetTokenPayload struct {
Token string `query:"token"`
}
type Registration ¶
type Registration struct {
// contains filtered or unexported fields
}
func (*Registration) CreateUser ¶
func (r *Registration) CreateUser(ctx echo.Context) error
func (*Registration) StoreUser ¶
func (r *Registration) StoreUser(ctx echo.Context) error
func (*Registration) VerifyUserEmail ¶
func (r *Registration) VerifyUserEmail(ctx echo.Context) error
type ResetPasswordPayload ¶
type StorePasswordResetPayload ¶
type StorePasswordResetPayload struct {
Email string `form:"email"`
}
type StoreUserPayload ¶
Click to show internal directories.
Click to hide internal directories.