controller

package
v0.0.0-...-9eb387d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixAuthAPI    = "/api/auth"
	PrefixProductAPI = "/api/product"

	SignUpAPI = "/sign-up"
	SignInAPI = "/sign-in"
	VerifyAPI = "/verify/:code"

	ProductUploadPhotoAPI = "/upload"
	ProductSearchAPI      = "/search"
	ProductDetailAPI      = "/:id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	dig.In
	Service service.Holder
}

func (*Auth) SignIn

func (impl *Auth) SignIn(c echo.Context) error

func (*Auth) SignUp

func (impl *Auth) SignUp(c echo.Context) error

func (*Auth) Verify

func (impl *Auth) Verify(c echo.Context) error

type CustomValidator

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

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type Holder

type Holder struct {
	dig.In
	Deps    shared.Deps
	Auth    Auth
	Product Product
}

func (*Holder) RegisterRoutes

func (h *Holder) RegisterRoutes()

type Product

type Product struct {
	dig.In
	Service service.Holder
}

func (*Product) Catalog

func (impl *Product) Catalog(c echo.Context) error

func (*Product) Create

func (impl *Product) Create(c echo.Context) error

func (*Product) Detail

func (impl *Product) Detail(c echo.Context) error

func (*Product) Search

func (impl *Product) Search(c echo.Context) error

func (*Product) UploadPhoto

func (impl *Product) UploadPhoto(c echo.Context) error

Jump to

Keyboard shortcuts

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