Versions in this module Expand all Collapse all v0 v0.7.0 Jul 23, 2026 Changes in this version + const TopicOrderCreated + var ErrMalformedEvent = errors.New("malformed event") + type Event struct + Data any + ID string + Key string + OccurredAt time.Time + Topic string + func Decode(topic, key string, value []byte) (*Event, error) + func New(topic, key string, data any) *Event + func (e *Event) DecodeData(v any) error + func (e *Event) Encode() ([]byte, error) + func (e *Event) Validate() error