api

package
v0.0.0-...-a9d022d Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductAPI

type ProductAPI struct {
	CatelogMap map[string]product.Product
}

ProductAPI is data structure hold the static data

func (*ProductAPI) GetAllProductsHandler

func (p *ProductAPI) GetAllProductsHandler(res http.ResponseWriter, req *http.Request)

func (*ProductAPI) GetProductHandler

func (p *ProductAPI) GetProductHandler(res http.ResponseWriter, req *http.Request)

func (*ProductAPI) SearchProductHandler

func (p *ProductAPI) SearchProductHandler(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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