Documentation ¶
Index ¶
- type WebCategoryHandler
- type WebProductHandler
- func (wph *WebProductHandler) CreateProduct(w http.ResponseWriter, r *http.Request)
- func (wph *WebProductHandler) GetProduct(w http.ResponseWriter, r *http.Request)
- func (wph *WebProductHandler) GetProductByCategoryID(w http.ResponseWriter, r *http.Request)
- func (wph *WebProductHandler) GetProducts(w http.ResponseWriter, r *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.