Documentation ¶ Index ¶ type Event func New(eventType string, timestamp time.Time, context, payload any) Event Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Event ¶ type Event struct { Type string `json:"type"` Timestamp time.Time `json:"timestamp"` Context any `json:"context,omitempty"` Payload any `json:"payload"` } func New ¶ func New( eventType string, timestamp time.Time, context, payload any, ) Event Source Files ¶ View all Source files event.go Click to show internal directories. Click to hide internal directories.