handlers

package
v0.0.0-...-d322c7c Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

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