http

package
v0.0.0-...-f89287e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

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

func NewHTTPHandler

func NewHTTPHandler(
	logger *otelzap.SugaredLogger,
	catgsrv *app.CategoryService,
	ingredsrv *app.IngredientService,
	kitsrv *app.KitService,
) *HTTPHandler

NewHTTPHandler constructs a new HTTPHandler.

func (*HTTPHandler) CreateKit

func (h *HTTPHandler) CreateKit(c *fiber.Ctx) error

func (*HTTPHandler) DeleteCategory

func (h *HTTPHandler) DeleteCategory(c *fiber.Ctx) error

func (*HTTPHandler) DeleteIngredient

func (h *HTTPHandler) DeleteIngredient(c *fiber.Ctx) error

func (*HTTPHandler) DeleteKit

func (h *HTTPHandler) DeleteKit(c *fiber.Ctx) error

func (*HTTPHandler) GetCategories

func (h *HTTPHandler) GetCategories(c *fiber.Ctx) error

Category handlers

func (*HTTPHandler) GetCategory

func (h *HTTPHandler) GetCategory(c *fiber.Ctx) error

func (*HTTPHandler) GetIngredient

func (h *HTTPHandler) GetIngredient(c *fiber.Ctx) error

func (*HTTPHandler) GetIngredients

func (h *HTTPHandler) GetIngredients(c *fiber.Ctx) error

Ingredient handlers

func (*HTTPHandler) GetKit

func (h *HTTPHandler) GetKit(c *fiber.Ctx) error

func (*HTTPHandler) GetKits

func (h *HTTPHandler) GetKits(c *fiber.Ctx) error

Kit handlers

func (*HTTPHandler) SuggestCategory

func (h *HTTPHandler) SuggestCategory(c *fiber.Ctx) error

func (*HTTPHandler) SuggestIngredient

func (h *HTTPHandler) SuggestIngredient(c *fiber.Ctx) error

func (*HTTPHandler) UpdateCategory

func (h *HTTPHandler) UpdateCategory(c *fiber.Ctx) error

func (*HTTPHandler) UpdateIngredient

func (h *HTTPHandler) UpdateIngredient(c *fiber.Ctx) error

func (*HTTPHandler) UpdateKit

func (h *HTTPHandler) UpdateKit(c *fiber.Ctx) error

func (*HTTPHandler) UploadCategoryImage

func (h *HTTPHandler) UploadCategoryImage(c *fiber.Ctx) error

func (*HTTPHandler) UploadIngredientImage

func (h *HTTPHandler) UploadIngredientImage(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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