controller

package
v0.0.0-...-5b02dbe Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TmplError400 = "error400"
	TmplError401 = "error401"
	TmplError404 = "error404"
	TmplError500 = "error500"
)

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(next echo.HandlerFunc) echo.HandlerFunc

func DeleteCustomer

func DeleteCustomer(c echo.Context) error

func GenerateAppContext

func GenerateAppContext(next echo.HandlerFunc) echo.HandlerFunc

func GetCreateCustomer

func GetCreateCustomer(c echo.Context) error

func GetDashboard

func GetDashboard(c echo.Context) error

func GetEditCustomer

func GetEditCustomer(c echo.Context) error

func GetGenerateCustomers

func GetGenerateCustomers(c echo.Context) error

func GetHome

func GetHome(c echo.Context) error

func GetLogin

func GetLogin(c echo.Context) error

func GetRegister

func GetRegister(c echo.Context) error

func GetSearchCustomers

func GetSearchCustomers(c echo.Context) error

func GetSettings

func GetSettings(c echo.Context) error

func GetViewCustomer

func GetViewCustomer(c echo.Context) error

func PostCreateCustomer

func PostCreateCustomer(c echo.Context) error

func PostEditCustomer

func PostEditCustomer(c echo.Context) error

func PostLogin

func PostLogin(c echo.Context) error

func PostLogout

func PostLogout(c echo.Context) error

func PostRegister

func PostRegister(c echo.Context) error

func PostSettings

func PostSettings(c echo.Context) error

func RenderTmpl

func RenderTmpl(c echo.Context, name string, data interface{}) error

Types

type AppContext

type AppContext struct {
	echo.Context

	User *db.User
}
type NavbarData struct {
	User   db.User
	Search string
}

type PaginationData

type PaginationData struct {
	TotalPages uint32
	PagesLimit uint32
}

type SidebarData

type SidebarData struct {
	User       db.User
	ActivePage string
}

type StatsData

type StatsData struct {
	Keys   []i18n.Key
	Values []uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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