Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductCreatedEvent ¶
type ProductCreatedEvent struct { ProductID uuid.UUID `json:"product_id"` Name string `json:"name"` Description string `json:"description"` Price float64 `json:"price"` CreatedAt time.Time `json:"created_at"` }
func NewProductCreatedEvent ¶
type ProductCreatedEventHandler ¶
type ProductCreatedEventHandler struct { }
func NewProductCreatedEventHandler ¶
func NewProductCreatedEventHandler() *ProductCreatedEventHandler
func (*ProductCreatedEventHandler) Handle ¶
func (c *ProductCreatedEventHandler) Handle(ctx context.Context, event *ProductCreatedEvent) error
Click to show internal directories.
Click to hide internal directories.