Documentation ¶
Index ¶
- Constants
- type AppRouter
- func (ar *AppRouter) CreateTask(c echo.Context) error
- func (ar *AppRouter) GetError(c echo.Context) error
- func (ar *AppRouter) GetHome(c echo.Context) error
- func (ar *AppRouter) GetLogin(c echo.Context) error
- func (ar *AppRouter) ListDelete(c echo.Context) error
- func (ar *AppRouter) LoadAuthContextFromCookie() echo.MiddlewareFunc
- func (ar *AppRouter) Login(c echo.Context, identifier string, password string) error
- func (ar *AppRouter) PostLogin(c echo.Context) error
- func (ar *AppRouter) PostLogout(c echo.Context) error
- func (ar *AppRouter) PostRegister(c echo.Context) error
- func (ar *AppRouter) Register(c echo.Context, email, username, password, passwordRepeat string) error
- func (ar *AppRouter) SetupRoutes(live bool) error
- func (ar *AppRouter) ToggleArchive(c echo.Context) error
- func (ar *AppRouter) ToggleTask(c echo.Context) error
Constants ¶
View Source
const AuthCookieName = "Auth"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRouter ¶
func NewAppRouter ¶
func NewAppRouter(e *core.ServeEvent) *AppRouter
func (*AppRouter) CreateTask ¶
func (*AppRouter) ListDelete ¶
func (*AppRouter) LoadAuthContextFromCookie ¶
func (ar *AppRouter) LoadAuthContextFromCookie() echo.MiddlewareFunc
func (*AppRouter) PostLogout ¶
PostLogout logs the user out by clearing the authentication cookie.
func (*AppRouter) PostRegister ¶
func (*AppRouter) Register ¶
func (ar *AppRouter) Register(c echo.Context, email, username, password, passwordRepeat string) error
Register handles the registration of new users.
func (*AppRouter) SetupRoutes ¶
func (*AppRouter) ToggleArchive ¶
func (*AppRouter) ToggleTask ¶
Click to show internal directories.
Click to hide internal directories.