Documentation ¶
Index ¶
- type Categories
- type KeyProduct
- type Products
- func (p *Products) AddProduct(rw http.ResponseWriter, r *http.Request)
- func (p *Products) DeleteProduct(rw http.ResponseWriter, r *http.Request)
- func (p *Products) GetProducts(rw http.ResponseWriter, r *http.Request)
- func (p Products) ProductsMiddleware(next http.Handler) http.Handler
- func (p *Products) UpdateProduct(rw http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories struct {
// contains filtered or unexported fields
}
func NewCategories ¶
func NewCategories(logger *log.Logger) *Categories
func (*Categories) AddCategory ¶
func (c *Categories) AddCategory(writer http.ResponseWriter, request *http.Request)
func (*Categories) GetCategories ¶
func (c *Categories) GetCategories(writer http.ResponseWriter, request *http.Request)
type KeyProduct ¶
type KeyProduct struct{}
type Products ¶
type Products struct {
// contains filtered or unexported fields
}
func NewProducts ¶
func (*Products) AddProduct ¶
func (p *Products) AddProduct(rw http.ResponseWriter, r *http.Request)
func (*Products) DeleteProduct ¶
func (p *Products) DeleteProduct(rw http.ResponseWriter, r *http.Request)
func (*Products) GetProducts ¶
func (p *Products) GetProducts(rw http.ResponseWriter, r *http.Request)
func (Products) ProductsMiddleware ¶
func (*Products) UpdateProduct ¶
func (p *Products) UpdateProduct(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.