Documentation ¶
Index ¶
- func NewCreateProductHandler(log logger.Logger, cfg *config.Config, kafkaProducer kafkaClient.Producer) *createProductHandler
- func NewDeleteProductHandler(log logger.Logger, cfg *config.Config, kafkaProducer kafkaClient.Producer) *deleteProductHandler
- func NewUpdateProductHandler(log logger.Logger, cfg *config.Config, kafkaProducer kafkaClient.Producer) *updateProductCmdHandler
- type CreateProductCmdHandler
- type CreateProductCommand
- type DeleteProductCmdHandler
- type DeleteProductCommand
- type ProductCommands
- type UpdateProductCmdHandler
- type UpdateProductCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateProductHandler ¶
func NewDeleteProductHandler ¶
func NewUpdateProductHandler ¶
Types ¶
type CreateProductCmdHandler ¶
type CreateProductCmdHandler interface {
Handle(ctx context.Context, command *CreateProductCommand) error
}
type CreateProductCommand ¶
type CreateProductCommand struct {
CreateDto *dto.CreateProductDto
}
func NewCreateProductCommand ¶
func NewCreateProductCommand(createDto *dto.CreateProductDto) *CreateProductCommand
type DeleteProductCmdHandler ¶
type DeleteProductCmdHandler interface {
Handle(ctx context.Context, command *DeleteProductCommand) error
}
type DeleteProductCommand ¶
func NewDeleteProductCommand ¶
func NewDeleteProductCommand(productID uuid.UUID) *DeleteProductCommand
type ProductCommands ¶
type ProductCommands struct { CreateProduct CreateProductCmdHandler UpdateProduct UpdateProductCmdHandler DeleteProduct DeleteProductCmdHandler }
func NewProductCommands ¶
func NewProductCommands(createProduct CreateProductCmdHandler, updateProduct UpdateProductCmdHandler, deleteProduct DeleteProductCmdHandler) *ProductCommands
type UpdateProductCmdHandler ¶
type UpdateProductCmdHandler interface {
Handle(ctx context.Context, command *UpdateProductCommand) error
}
type UpdateProductCommand ¶
type UpdateProductCommand struct {
UpdateDto *dto.UpdateProductDto
}
func NewUpdateProductCommand ¶
func NewUpdateProductCommand(updateDto *dto.UpdateProductDto) *UpdateProductCommand
Click to show internal directories.
Click to hide internal directories.