events

package
v0.0.0-...-dabfb91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 3 Imported by: 0

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

func NewProductCreatedEvent(id uuid.UUID, name string, description string, price float64, createdAt time.Time) *ProductCreatedEvent

type ProductCreatedEventHandler

type ProductCreatedEventHandler struct {
}

func NewProductCreatedEventHandler

func NewProductCreatedEventHandler() *ProductCreatedEventHandler

func (*ProductCreatedEventHandler) Handle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL