handlers

package
v0.0.0-...-2482fcd Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package classification Product API

Documentation for Product API

Schemes: http
BasePath: /
Version: 0.0.1

Consumes:
- application/json

Produces:
- application/json

swagger:meta

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
}

func NewProducts

func NewProducts(l *log.Logger) *Products

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)

GetProducts returns the products from the data store.

func (Products) MiddlewareProductValidation

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

func (Products) UpdateProducts

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

UpdateProducts returns the updated products from the data store.

Jump to

Keyboard shortcuts

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