routes

package
v0.0.0-...-dbcc324 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRouter

func BuildRouter(c *services.Container)

BuildRouter builds the router

Types

type About

type About struct {
	controller.Controller
}

func (*About) Get

func (c *About) Get(ctx echo.Context) error

type AboutData

type AboutData struct {
	ShowCacheWarning bool
	FrontendTabs     []AboutTab
	BackendTabs      []AboutTab
}

type AboutTab

type AboutTab struct {
	Title string
	Body  template.HTML
}

type Contact

type Contact struct {
	controller.Controller
}

func (*Contact) Get

func (c *Contact) Get(ctx echo.Context) error

func (*Contact) Post

func (c *Contact) Post(ctx echo.Context) error

type ContactForm

type ContactForm struct {
	Email      string `form:"email" validate:"required,email"`
	Message    string `form:"message" validate:"required"`
	Submission controller.FormSubmission
}

type Error

type Error struct {
	controller.Controller
}

func (*Error) Get

func (e *Error) Get(err error, c echo.Context)

type ForgotPassword

type ForgotPassword struct {
	controller.Controller
}

func (*ForgotPassword) Get

func (c *ForgotPassword) Get(ctx echo.Context) error

func (*ForgotPassword) Post

func (c *ForgotPassword) Post(ctx echo.Context) error

type ForgotPasswordForm

type ForgotPasswordForm struct {
	Email      string `form:"email" validate:"required,email"`
	Submission controller.FormSubmission
}

type Home

type Home struct {
	controller.Controller
}

func (*Home) Get

func (c *Home) Get(ctx echo.Context) error

type Login

type Login struct {
	controller.Controller
}

func (*Login) Get

func (c *Login) Get(ctx echo.Context) error

func (*Login) Post

func (c *Login) Post(ctx echo.Context) error

type LoginForm

type LoginForm struct {
	Email      string `form:"email" validate:"required,email"`
	Password   string `form:"password" validate:"required"`
	Submission controller.FormSubmission
}

type Logout

type Logout struct {
	controller.Controller
}

func (*Logout) Get

func (l *Logout) Get(c echo.Context) error

type Post

type Post struct {
	Title string
	Body  string
}

type Register

type Register struct {
	controller.Controller
}

func (*Register) Get

func (c *Register) Get(ctx echo.Context) error

func (*Register) Post

func (c *Register) Post(ctx echo.Context) error

type RegisterForm

type RegisterForm struct {
	Name            string `form:"name" validate:"required"`
	Email           string `form:"email" validate:"required,email"`
	Password        string `form:"password" validate:"required"`
	ConfirmPassword string `form:"password-confirm" validate:"required,eqfield=Password"`
	Submission      controller.FormSubmission
}

type ResetPassword

type ResetPassword struct {
	controller.Controller
}

func (*ResetPassword) Get

func (c *ResetPassword) Get(ctx echo.Context) error

func (*ResetPassword) Post

func (c *ResetPassword) Post(ctx echo.Context) error

type ResetPasswordForm

type ResetPasswordForm struct {
	Password        string `form:"password" validate:"required"`
	ConfirmPassword string `form:"password-confirm" validate:"required,eqfield=Password"`
	Submission      controller.FormSubmission
}
type Search struct {
	controller.Controller
}

func (*Search) Get

func (c *Search) Get(ctx echo.Context) error

type SearchResult

type SearchResult struct {
	Title string
	URL   string
}

Jump to

Keyboard shortcuts

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