Skip to main content

Module domain_event

Module domain_event 

Source
Expand description

Typed outward domain events captured separately from aggregate replay bytes.

A DomainEventOccurrence owns canonical bytes at transition time. Aggregate replay suppresses capture, failed persistence leaves pending occurrences untouched, and only explicit successful persistence clears them.

Structs§

DomainDeletion
Stable deletion body used when no live post-state exists.
DomainDeletionError
A deletion incarnation must be non-zero.
DomainEventBodyDescriptor
Versioned schema and codec identity for one domain-event body.
DomainEventCapturePoison
Sticky first failure that prevents committing an entity’s outward events.
DomainEventCommitGuardError
Manual unit-of-work guard failure for a poisoned entity.
DomainEventDescriptor
Semantic domain-event name and independently versioned body contract.
DomainEventEnvelope
Immutable framework metadata captured with one outward event transition.
DomainEventOccurrence
One exact typed outward event captured at aggregate transition time.
DomainStateDescriptor
Independently versioned public post-transition state descriptor.

Enums§

DomainEventBodyKind
How a public domain-event body was derived.
DomainEventCaptureError
Typed failure while capturing or parsing an outward occurrence.
DomainEventCaptureOutcome
Result of a transition-time capture attempt.

Constants§

DOMAIN_EVENT_BODY_CODEC
Canonical domain-event body codec emitted by Distributed version one.
DOMAIN_EVENT_BODY_CODEC_VERSION
Version of DOMAIN_EVENT_BODY_CODEC.
DOMAIN_EVENT_OCCURRENCE_VERSION
Version of the canonical DomainEventOccurrence envelope.
MAX_DOMAIN_EVENT_BODY_BYTES
Maximum canonical domain-event body size, in bytes.
MAX_DOMAIN_EVENT_OCCURRENCE_WIRE_BYTES
Maximum accepted serialized occurrence size, including envelope and base64.

Traits§

DomainEvent
A sparse or explicitly adapted outward domain event.
DomainState
A deliberately public post-transition state DTO.