handlers

package
v0.0.0-...-ed3c36b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductHandler

type ProductHandler struct {
	ProductDB database.ProductInterface
}

func NewProductHandler

func NewProductHandler(db database.ProductInterface) *ProductHandler

func (*ProductHandler) Create

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

func (*ProductHandler) Delete

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

func (*ProductHandler) Get

func (*ProductHandler) GetProducts

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

func (*ProductHandler) Update

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

type UserHandler

type UserHandler struct {
	UserDB database.UserInterface
}

func NewUserHandler

func NewUserHandler(db 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