# Functions
GenerateID creates a new random UUID or panics.
IDFromString creates a ID from a string.
NewRepository instantiates a new AggregateRepository.
NewType create a new aggregate type instance.
ReconstituteChange recreates a previous aggregate Changed message based on the provided data.
RecordChange record the given event onto the aggregate.Root by wrapping it in an aggregate.Changed.
# Constants
IDKey is the metadata key to identify the aggregate id.
TypeKey is the metadata key to identify the aggregate type.
VersionKey is the metadata key to identify the aggregate version.
# Variables
ErrEmptyEventStream occurs when the event stream returned by the event store is empty.
ErrInitiatorMustReturnRoot occurs when a aggregate.Initiator did not return a pointer.
ErrInvalidChangePayload occurs when no payload is provided.
ErrInvalidChangeVersion occurs since a version cannot be zero.
ErrInvalidID occurs when a string is not a valid ID.
ErrMissingAggregateID occurs when no or an invalid aggregate.ID was provided.
ErrMissingChangeUUID occurs when no or an invalid message.UUID was provided.
ErrUnexpectedMessageType occurs when the event store returns a message that is not an *aggregate.Changed.
ErrUnsupportedAggregateType occurs when the given aggregateType is not handled by the AggregateRepository.
# Structs
BaseRoot is the base struct to be embedded for any aggregate root.
Changed is a message indicating that a aggregate was changed.
Repository a repository to save and load aggregate.Root's of a specific type.
No description provided by the author