Versions in this module Expand all Collapse all v0 v0.6.1 Apr 29, 2026 Changes in this version + const OccurredAtLayout + func DecodeDomainEvent(payload []byte) (event.DomainEvent, error) + func EncodeDomainEvent(evt event.DomainEvent) ([]byte, error) + func MetadataFromEvent(evt event.DomainEvent, source string) map[string]string + type Envelope struct + AggregateID string + AggregateType string + Data json.RawMessage + EventType string + ID string + OccurredAt time.Time + func DecodeEnvelope(payload []byte) (*Envelope, error) + type PayloadDecoder func([]byte) (event.DomainEvent, error) + type PayloadEncoder func(event.DomainEvent) ([]byte, error)