webserver

package
v0.0.0-...-c9d5447 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebCategoryHandler

type WebCategoryHandler struct {
	CategoryService *service.CategoryService
}

func NewWebCategoryHandler

func NewWebCategoryHandler(categoryService *service.CategoryService) *WebCategoryHandler

func (*WebCategoryHandler) CreateCategory

func (wch *WebCategoryHandler) CreateCategory(w http.ResponseWriter, r *http.Request)

func (*WebCategoryHandler) GetCategories

func (wch *WebCategoryHandler) GetCategories(w http.ResponseWriter, r *http.Request)

func (*WebCategoryHandler) GetCategory

func (wch *WebCategoryHandler) GetCategory(w http.ResponseWriter, r *http.Request)

type WebProductHandler

type WebProductHandler struct {
	ProductService *service.ProductService
}

func NewWebProductHandler

func NewWebProductHandler(productService *service.ProductService) *WebProductHandler

func (*WebProductHandler) CreateProduct

func (wph *WebProductHandler) CreateProduct(w http.ResponseWriter, r *http.Request)

func (*WebProductHandler) GetProduct

func (wph *WebProductHandler) GetProduct(w http.ResponseWriter, r *http.Request)

func (*WebProductHandler) GetProductByCategoryID

func (wph *WebProductHandler) GetProductByCategoryID(w http.ResponseWriter, r *http.Request)

func (*WebProductHandler) GetProducts

func (wph *WebProductHandler) GetProducts(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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