Documentation ¶
Overview ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Index ¶
- func AddBrands(w http.ResponseWriter, r *http.Request)
- func AddProducts(w http.ResponseWriter, r *http.Request)
- func DeleteBrand(w http.ResponseWriter, r *http.Request)
- func DeleteProduct(w http.ResponseWriter, r *http.Request)
- func GetBrand(w http.ResponseWriter, r *http.Request)
- func GetBrandId() int
- func GetProduct(w http.ResponseWriter, r *http.Request)
- func GetProductId() int
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Remove(tmp []int, val int) []int
- func ShowAllBrands(w http.ResponseWriter, r *http.Request)
- func ShowAllProducts(w http.ResponseWriter, r *http.Request)
- func StartAPI(Port string)
- func UpdateProducts(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProducts ¶
func AddProducts(w http.ResponseWriter, r *http.Request)
{ "product_id": 2, "product_name": "keyboard", "product_brand": { "brand_id": 1, "brand_name": "apple", "brand_product": [ 1, 2 ] }, "product_price": 1000, "product_status": true }
func DeleteBrand ¶
func DeleteBrand(w http.ResponseWriter, r *http.Request)
func DeleteProduct ¶
func DeleteProduct(w http.ResponseWriter, r *http.Request)
func GetBrandId ¶
func GetBrandId() int
func GetProduct ¶
func GetProduct(w http.ResponseWriter, r *http.Request)
func GetProductId ¶
func GetProductId() int
func ShowAllBrands ¶
func ShowAllBrands(w http.ResponseWriter, r *http.Request)
func ShowAllProducts ¶
func ShowAllProducts(w http.ResponseWriter, r *http.Request)
func UpdateProducts ¶
func UpdateProducts(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.