Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Event types PersonCreatedEvent = "person:created" PersonUpdatedEvent = "person:updated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // The UUID of the event, if not populated the server will create one. Id string // The event payload. Contains the actual event. Data []byte // Type of event Type string // If left blank, this will be populated with the server-time once written to the log. Timestamp string }
Event represents a state change that has occurred. Event is the root wrapper for all other event types.
type PersonCreated ¶
Struct for PersonCreated event.
type PersonUpdated ¶
Struct for PersonUpdated event.
Click to show internal directories.
Click to hide internal directories.