Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetProductByIdHandler ¶
func NewGetProductByIdHandler(log logger.Logger, cfg *config.Config, pgRepo repository.Repository) *getProductByIdHandler
Types ¶
type GetProductByIdHandler ¶
type GetProductByIdQuery ¶
type GetProductByIdQuery struct {
ProductID uuid.UUID `json:"productId" validate:"required,gte=0,lte=255"`
}
func NewGetProductByIdQuery ¶
func NewGetProductByIdQuery(productID uuid.UUID) *GetProductByIdQuery
type ProductQueries ¶
type ProductQueries struct {
GetProductById GetProductByIdHandler
}
func NewProductQueries ¶
func NewProductQueries(getProductById GetProductByIdHandler) *ProductQueries
Click to show internal directories.
Click to hide internal directories.