Documentation ¶
Index ¶
- type Controller
- func (base *Controller) CreateProduct(c *gin.Context)
- func (base *Controller) DeleteProductController(ctx *gin.Context)
- func (base *Controller) FilterProducts(ctx *gin.Context)
- func (base *Controller) GetAllProducts(ctx *gin.Context)
- func (base *Controller) GetProduct(c *gin.Context)
- func (base *Controller) GetProductsInCategory(ctx *gin.Context)
- func (base *Controller) UpdateProduct(c *gin.Context)
- func (base *Controller) UploadImage(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Db *storage.Database Validator *validator.Validate Logger *utility.Logger ExtReq request.ExternalRequest }
func (*Controller) CreateProduct ¶
func (base *Controller) CreateProduct(c *gin.Context)
func (*Controller) DeleteProductController ¶
func (base *Controller) DeleteProductController(ctx *gin.Context)
func (*Controller) FilterProducts ¶
func (base *Controller) FilterProducts(ctx *gin.Context)
func (*Controller) GetAllProducts ¶
func (base *Controller) GetAllProducts(ctx *gin.Context)
func (*Controller) GetProduct ¶
func (base *Controller) GetProduct(c *gin.Context)
func (*Controller) GetProductsInCategory ¶
func (base *Controller) GetProductsInCategory(ctx *gin.Context)
func (*Controller) UpdateProduct ¶
func (base *Controller) UpdateProduct(c *gin.Context)
func (*Controller) UploadImage ¶
func (base *Controller) UploadImage(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.