handler

package
v0.0.0-...-39a58cf Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(db *sql.DB) *AuthHandler

func (*AuthHandler) Login

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

func (*AuthHandler) Register

func (h *AuthHandler) Register(c echo.Context) error

type CartHandler

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

func NewCartHandler

func NewCartHandler(db *sql.DB) *CartHandler

func (*CartHandler) AddItemToCart

func (h *CartHandler) AddItemToCart(c echo.Context) error

func (*CartHandler) ClearCart

func (h *CartHandler) ClearCart(c echo.Context) error

func (*CartHandler) FetchCart

func (h *CartHandler) FetchCart(c echo.Context) error

func (*CartHandler) RemoveFromCart

func (h *CartHandler) RemoveFromCart(c echo.Context) error

type ProductHandler

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

func NewProductHandler

func NewProductHandler(db *sql.DB) *ProductHandler

func (*ProductHandler) FetchProductById

func (h *ProductHandler) FetchProductById(c echo.Context) error

func (*ProductHandler) FetchProducts

func (h *ProductHandler) FetchProducts(c echo.Context) error

Jump to

Keyboard shortcuts

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