handlers

package
v0.0.0-...-fb460ba Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyProduct

type KeyProduct struct{}

type Products

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

Products is a http.Handler

func NewProducts

func NewProducts(l *log.Logger) *Products

NewProducts creates a products handler with the given logger

func (*Products) AddProduct

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

func (*Products) GetProducts

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

func (Products) MiddlewareValidateProduct

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

func (Products) UpdateProducts

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

Jump to

Keyboard shortcuts

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