handlers

package
v0.0.0-...-0716d42 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	File    string   `json:"file"`
	Src     string   `json:"src"`
	IsEntry bool     `json:"isEntry"`
	Css     []string `json:"css"`
}

type HTMXResponse

type HTMXResponse struct {
	echo.Context
}

func NewHTMXResponse

func NewHTMXResponse(c echo.Context, resp htmx.Response) HTMXResponse

func (HTMXResponse) Send

func (h HTMXResponse) Send() error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) AddRoutes

func (h *Handler) AddRoutes(s *server.Server)

func (*Handler) AddTemplates

func (h *Handler) AddTemplates(s *server.Server)

func (*Handler) HTMX

func (h *Handler) HTMX(c echo.Context, resp htmx.Response) HTMXResponse

func (*Handler) Login

func (h *Handler) Login(c echo.Context) error

func (*Handler) LoginPost

func (h *Handler) LoginPost(c echo.Context) error

func (*Handler) Logout

func (h *Handler) Logout(c echo.Context) error

func (*Handler) Profile

func (h *Handler) Profile(c echo.Context) error

func (*Handler) ProfileEdit

func (h *Handler) ProfileEdit(c echo.Context) error

func (*Handler) Redirect

func (h *Handler) Redirect(c echo.Context) error

func (*Handler) Root

func (h *Handler) Root(c echo.Context) error

func (*Handler) Signup

func (h *Handler) Signup(c echo.Context) error

func (*Handler) SignupPost

func (h *Handler) SignupPost(c echo.Context) error

func (*Handler) Task

func (h *Handler) Task(c echo.Context) error

func (*Handler) TaskComplete

func (h *Handler) TaskComplete(c echo.Context) error

func (*Handler) TaskCreate

func (h *Handler) TaskCreate(c echo.Context) error

func (*Handler) TaskCreatePost

func (h *Handler) TaskCreatePost(c echo.Context) error

func (*Handler) TaskReopen

func (h *Handler) TaskReopen(c echo.Context) error

func (*Handler) TaskUpdate

func (h *Handler) TaskUpdate(c echo.Context) error

func (*Handler) Tasks

func (h *Handler) Tasks(c echo.Context) error

type IHandler

type IHandler interface {
	AddRoutes(*server.Server)
	AddTemplates(*server.Server)
}

func NewHandler

func NewHandler(db *redis.Client, api api.IAPI) IHandler

type LoginRequest

type LoginRequest struct {
	Email    string `form:"email"`
	Password string `form:"password"`
}

type SignUpRequest

type SignUpRequest struct {
	Email    string `form:"email"`
	Username string `form:"username"`
	Name     string `form:"name"`
	Password string `form:"password"`
}

Jump to

Keyboard shortcuts

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