handlers

package module
v0.0.0-...-676a9f9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.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 Categories

type Categories struct {
	// contains filtered or unexported fields
}

func NewCategories

func NewCategories(logger *log.Logger) *Categories

func (*Categories) AddCategory

func (c *Categories) AddCategory(writer http.ResponseWriter, request *http.Request)

func (*Categories) GetCategories

func (c *Categories) GetCategories(writer http.ResponseWriter, request *http.Request)

type KeyProduct

type KeyProduct struct{}

type Products

type Products struct {
	// contains filtered or unexported fields
}

func NewProducts

func NewProducts(logger *log.Logger) *Products

func (*Products) AddProduct

func (p *Products) AddProduct(rw http.ResponseWriter, r *http.Request)

func (*Products) DeleteProduct

func (p *Products) DeleteProduct(rw http.ResponseWriter, r *http.Request)

func (*Products) GetProducts

func (p *Products) GetProducts(rw http.ResponseWriter, r *http.Request)

func (Products) ProductsMiddleware

func (p Products) ProductsMiddleware(next http.Handler) http.Handler

func (*Products) UpdateProduct

func (p *Products) UpdateProduct(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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