Documentation ¶
Index ¶
- func GetSecret() string
- type ProductController
- func (ctrl *ProductController) AddProductHandler(rw http.ResponseWriter, r *http.Request)
- func (ctrl *ProductController) CustomQueryHandler(rw http.ResponseWriter, r *http.Request)
- func (ctrl *ProductController) DeleteProductHandler(rw http.ResponseWriter, r *http.Request)
- func (ctrl *ProductController) GetAllProductByIdHandler(rw http.ResponseWriter, r *http.Request)
- func (ctrl *ProductController) GetAllProductsHandler(rw http.ResponseWriter, r *http.Request)
- func (ctrl *ProductController) InitGormConnection()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProductController ¶
type ProductController struct {
// contains filtered or unexported fields
}
ProductController is the getproduct route handler
func NewProductController ¶
func NewProductController(logger *zap.Logger) *ProductController
NewProductController returns a frsh Upload controller
func (*ProductController) AddProductHandler ¶
func (ctrl *ProductController) AddProductHandler(rw http.ResponseWriter, r *http.Request)
func (*ProductController) CustomQueryHandler ¶
func (ctrl *ProductController) CustomQueryHandler(rw http.ResponseWriter, r *http.Request)
func (*ProductController) DeleteProductHandler ¶
func (ctrl *ProductController) DeleteProductHandler(rw http.ResponseWriter, r *http.Request)
func (*ProductController) GetAllProductByIdHandler ¶
func (ctrl *ProductController) GetAllProductByIdHandler(rw http.ResponseWriter, r *http.Request)
func (*ProductController) GetAllProductsHandler ¶
func (ctrl *ProductController) GetAllProductsHandler(rw http.ResponseWriter, r *http.Request)
func (*ProductController) InitGormConnection ¶
func (ctrl *ProductController) InitGormConnection()
Click to show internal directories.
Click to hide internal directories.