handlers

package
v0.0.0-...-e5726c0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string `json:"message"`
}

type ProductHandler

type ProductHandler struct {
	ProductDB database.ProductInterface
}

func NewProductHandler

func NewProductHandler(db database.ProductInterface) *ProductHandler

func (*ProductHandler) CreateProduct

func (h *ProductHandler) CreateProduct(w http.ResponseWriter, r *http.Request)

func (*ProductHandler) DeleteProduct

func (h *ProductHandler) DeleteProduct(w http.ResponseWriter, r *http.Request)

func (*ProductHandler) GetProduct

func (h *ProductHandler) GetProduct(w http.ResponseWriter, r *http.Request)

func (*ProductHandler) GetProducts

func (h *ProductHandler) GetProducts(w http.ResponseWriter, r *http.Request)

func (*ProductHandler) UpdateProduct

func (h *ProductHandler) UpdateProduct(w http.ResponseWriter, r *http.Request)

type UserHandler

type UserHandler struct {
	UserDB database.UserInterface
}

func NewUserHandler

func NewUserHandler(userDB database.UserInterface) *UserHandler

func (*UserHandler) Create

func (h *UserHandler) Create(w http.ResponseWriter, r *http.Request)

func (*UserHandler) GetJWT

func (h *UserHandler) GetJWT(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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