Versions in this module Expand all Collapse all v0 v0.1.0 Jul 13, 2026 Changes in this version + const CurrentSchemaVersion + func DecodePayload(env Envelope, dest any) error + func MarshalV1(eventType, tenantID, workflowID, correlationID string, payload any) ([]byte, error) + func SupportedSchema(version int) bool + type Envelope struct + CorrelationID string + OccurredAt time.Time + Payload json.RawMessage + SchemaVersion int + TenantID string + Type string + WorkflowID string + func UnmarshalFlexible(data []byte) (env Envelope, bare bool, err error)