handler

package
v0.0.0-...-50fd323 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 8 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 {
	HandlerOption
}

func (AuthHandler) Login

func (ah AuthHandler) Login(ctx echo.Context) (err error)

func (AuthHandler) Logout

func (ah AuthHandler) Logout(ctx echo.Context) (err error)

func (AuthHandler) Register

func (ah AuthHandler) Register(ctx echo.Context) (err error)

type CartHandler

type CartHandler struct {
	HandlerOption
}

func (CartHandler) AddToCart

func (ch CartHandler) AddToCart(ctx echo.Context) error

func (CartHandler) Checkout

func (ch CartHandler) Checkout(ctx echo.Context) error

func (CartHandler) DeleteCart

func (ch CartHandler) DeleteCart(ctx echo.Context) error

func (CartHandler) GetCart

func (ch CartHandler) GetCart(ctx echo.Context) error

func (CartHandler) UpdateCart

func (ch CartHandler) UpdateCart(ctx echo.Context) error

type HandlerOption

type HandlerOption struct {
	commons.Options
	*service.Services
}

type HealthCheckHandler

type HealthCheckHandler struct {
	HandlerOption
}

func (HealthCheckHandler) HealthCheck

func (h HealthCheckHandler) HealthCheck(ctx echo.Context) (err error)

type ProductHandler

type ProductHandler struct {
	HandlerOption
}

func (*ProductHandler) CreateProduct

func (ph *ProductHandler) CreateProduct(c echo.Context) error

func (*ProductHandler) DeleteProduct

func (ph *ProductHandler) DeleteProduct(c echo.Context) error

func (*ProductHandler) GetAllProduct

func (ph *ProductHandler) GetAllProduct(c echo.Context) error

func (*ProductHandler) GetProductById

func (ph *ProductHandler) GetProductById(c echo.Context) error

func (*ProductHandler) GetProductByIdUser

func (ph *ProductHandler) GetProductByIdUser(c echo.Context) error

func (*ProductHandler) UpdateProduct

func (ph *ProductHandler) UpdateProduct(c echo.Context) error

type UserHandler

type UserHandler struct {
	HandlerOption
}

func (*UserHandler) CreateUser

func (uh *UserHandler) CreateUser(c echo.Context) error

func (*UserHandler) DeleteUser

func (uh *UserHandler) DeleteUser(c echo.Context) error

func (*UserHandler) GetAllHandler

func (uh *UserHandler) GetAllHandler(c echo.Context) error

func (*UserHandler) GetUserProfile

func (uh *UserHandler) GetUserProfile(c echo.Context) error

func (*UserHandler) UpdateUser

func (uh *UserHandler) UpdateUser(c echo.Context) error

Jump to

Keyboard shortcuts

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