Documentation ¶
Index ¶
- func AddProduct(w http.ResponseWriter, r *http.Request)
- func AddUser(w http.ResponseWriter, r *http.Request)
- func DeleteProduct(w http.ResponseWriter, r *http.Request)
- func GetProduct(w http.ResponseWriter, r *http.Request)
- func GetProducts(w http.ResponseWriter, r *http.Request)
- func UpdateProduct(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProduct ¶
func AddProduct(w http.ResponseWriter, r *http.Request)
AddProduct ti add new product to productsList
func AddUser ¶
func AddUser(w http.ResponseWriter, r *http.Request)
AddUser to add new product to productsList
func DeleteProduct ¶
func DeleteProduct(w http.ResponseWriter, r *http.Request)
DeleteProduct handler
func GetProduct ¶
func GetProduct(w http.ResponseWriter, r *http.Request)
GetProduct to retrieve a single product
func GetProducts ¶
func GetProducts(w http.ResponseWriter, r *http.Request)
GetProducts return productsList
func UpdateProduct ¶
func UpdateProduct(w http.ResponseWriter, r *http.Request)
UpdateProduct handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.