Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeProductCreated = EventType("created") EventTypeProductUpdated = EventType("updated") EventTypeProductDeleted = EventType("removed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Created *ProductCreatedPayload `json:"created"` Updated *ProductUpdatedPayload `json:"updated"` Removed *ProductRemovedPayload `json:"removed"` }
type ProductCreatedPayload ¶
type ProductEvent ¶
type ProductRemovedPayload ¶
type ProductRemovedPayload struct {
ID uint64 `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.