Documentation ¶
Index ¶
- type HTTPHandler
- func (h *HTTPHandler) CreateKit(c *fiber.Ctx) error
- func (h *HTTPHandler) DeleteCategory(c *fiber.Ctx) error
- func (h *HTTPHandler) DeleteIngredient(c *fiber.Ctx) error
- func (h *HTTPHandler) DeleteKit(c *fiber.Ctx) error
- func (h *HTTPHandler) GetCategories(c *fiber.Ctx) error
- func (h *HTTPHandler) GetCategory(c *fiber.Ctx) error
- func (h *HTTPHandler) GetIngredient(c *fiber.Ctx) error
- func (h *HTTPHandler) GetIngredients(c *fiber.Ctx) error
- func (h *HTTPHandler) GetKit(c *fiber.Ctx) error
- func (h *HTTPHandler) GetKits(c *fiber.Ctx) error
- func (h *HTTPHandler) SuggestCategory(c *fiber.Ctx) error
- func (h *HTTPHandler) SuggestIngredient(c *fiber.Ctx) error
- func (h *HTTPHandler) UpdateCategory(c *fiber.Ctx) error
- func (h *HTTPHandler) UpdateIngredient(c *fiber.Ctx) error
- func (h *HTTPHandler) UpdateKit(c *fiber.Ctx) error
- func (h *HTTPHandler) UploadCategoryImage(c *fiber.Ctx) error
- func (h *HTTPHandler) UploadIngredientImage(c *fiber.Ctx) error
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) 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
Click to show internal directories.
Click to hide internal directories.