Documentation
¶
Index ¶
- func AttachProductController(mux *mux.Router, service *service.ProductService)
- type ProductController
- func (p ProductController) FindProductById(w http.ResponseWriter, r *http.Request)
- func (ctrl ProductController) GetProducts(w http.ResponseWriter, r *http.Request)
- func (p ProductController) InsertProduct(w http.ResponseWriter, r *http.Request)
- func (p ProductController) RemoveProduct(w http.ResponseWriter, r *http.Request)
- func (p ProductController) UpdateProduct(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachProductController ¶
func AttachProductController(mux *mux.Router, service *service.ProductService)
Types ¶
type ProductController ¶
type ProductController struct {
// contains filtered or unexported fields
}
func (ProductController) FindProductById ¶
func (p ProductController) FindProductById(w http.ResponseWriter, r *http.Request)
func (ProductController) GetProducts ¶
func (ctrl ProductController) GetProducts(w http.ResponseWriter, r *http.Request)
func (ProductController) InsertProduct ¶
func (p ProductController) InsertProduct(w http.ResponseWriter, r *http.Request)
func (ProductController) RemoveProduct ¶
func (p ProductController) RemoveProduct(w http.ResponseWriter, r *http.Request)
func (ProductController) UpdateProduct ¶
func (p ProductController) UpdateProduct(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.