api

package
v0.0.0-...-f8c425d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBrands

func AddBrands(w http.ResponseWriter, r *http.Request)

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 GetBrand

func GetBrand(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 Login

func Login(w http.ResponseWriter, r *http.Request)

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

func Remove

func Remove(tmp []int, val int) []int

func ShowAllBrands

func ShowAllBrands(w http.ResponseWriter, r *http.Request)

func ShowAllProducts

func ShowAllProducts(w http.ResponseWriter, r *http.Request)

func StartAPI

func StartAPI(Port string)

func UpdateProducts

func UpdateProducts(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL