handlers

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRouter

func BuildRouter(c *services.Container) error

BuildRouter builds the router

func Register

func Register(h Handler)

Register registers a handler

Types

type Auth

type Auth struct {
	*services.TemplateRenderer
	// contains filtered or unexported fields
}

func (*Auth) ForgotPasswordPage

func (h *Auth) ForgotPasswordPage(ctx echo.Context) error

func (*Auth) ForgotPasswordSubmit

func (h *Auth) ForgotPasswordSubmit(ctx echo.Context) error

func (*Auth) Init

func (h *Auth) Init(c *services.Container) error

func (*Auth) LoginPage

func (h *Auth) LoginPage(ctx echo.Context) error

func (*Auth) LoginSubmit

func (h *Auth) LoginSubmit(ctx echo.Context) error

func (*Auth) Logout

func (h *Auth) Logout(ctx echo.Context) error

func (*Auth) RegisterPage

func (h *Auth) RegisterPage(ctx echo.Context) error

func (*Auth) RegisterSubmit

func (h *Auth) RegisterSubmit(ctx echo.Context) error

func (*Auth) ResetPasswordPage

func (h *Auth) ResetPasswordPage(ctx echo.Context) error

func (*Auth) ResetPasswordSubmit

func (h *Auth) ResetPasswordSubmit(ctx echo.Context) error

func (*Auth) Routes

func (h *Auth) Routes(g *echo.Group)

func (*Auth) VerifyEmail

func (h *Auth) VerifyEmail(ctx echo.Context) error

type Cache added in v0.15.0

type Cache struct {
	*services.TemplateRenderer
	// contains filtered or unexported fields
}

func (*Cache) Init added in v0.15.0

func (h *Cache) Init(c *services.Container) error

func (*Cache) Page added in v0.15.0

func (h *Cache) Page(ctx echo.Context) error

func (*Cache) Routes added in v0.15.0

func (h *Cache) Routes(g *echo.Group)

func (*Cache) Submit added in v0.15.0

func (h *Cache) Submit(ctx echo.Context) error

type Contact

type Contact struct {
	*services.TemplateRenderer
	// contains filtered or unexported fields
}

func (*Contact) Init

func (h *Contact) Init(c *services.Container) error

func (*Contact) Page

func (h *Contact) Page(ctx echo.Context) error

func (*Contact) Routes

func (h *Contact) Routes(g *echo.Group)

func (*Contact) Submit

func (h *Contact) Submit(ctx echo.Context) error

type Error

type Error struct {
	*services.TemplateRenderer
}

func (*Error) Page

func (e *Error) Page(err error, ctx echo.Context)

type Handler

type Handler interface {
	// Routes allows for self-registration of HTTP routes on the router
	Routes(g *echo.Group)

	// Init provides the service container to initialize
	Init(*services.Container) error
}

Handler handles one or more HTTP routes

func GetHandlers

func GetHandlers() []Handler

GetHandlers returns all handlers

type Pages

type Pages struct {
	*services.TemplateRenderer
}

func (*Pages) About

func (h *Pages) About(ctx echo.Context) error

func (*Pages) Home

func (h *Pages) Home(ctx echo.Context) error

func (*Pages) Init

func (h *Pages) Init(c *services.Container) error

func (*Pages) Routes

func (h *Pages) Routes(g *echo.Group)
type Search struct {
	*services.TemplateRenderer
}

func (*Search) Init

func (h *Search) Init(c *services.Container) error

func (*Search) Page

func (h *Search) Page(ctx echo.Context) error

func (*Search) Routes

func (h *Search) Routes(g *echo.Group)

type Task added in v0.15.0

type Task struct {
	*services.TemplateRenderer
	// contains filtered or unexported fields
}

func (*Task) Init added in v0.15.0

func (h *Task) Init(c *services.Container) error

func (*Task) Page added in v0.15.0

func (h *Task) Page(ctx echo.Context) error

func (*Task) Routes added in v0.15.0

func (h *Task) Routes(g *echo.Group)

func (*Task) Submit added in v0.15.0

func (h *Task) Submit(ctx echo.Context) error

Jump to

Keyboard shortcuts

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