View Source API Reference domainex v0.1.0
Modules
A domainex
is an Elixir library which provides
Aggregate is a module provide base Aggregate module functions. It provide base structure for the aggregate. An aggregate itself means, a cluster of objects that treat as a single unit of domain business logic, although it's possible too to contain only a single object.
An aggregate objects may using this structure as their base data structure, although the function implementation it will always depends to some specific requirements and logics.
Event described on this module is specified for domain's event. It provides a base event's structure and also a behaviour to handle all available events.
A Event.Processor
is an abstraction interface to process all emitted events from an aggregate.
I think it should be better to provide just a behaviour with a simple callback function and give
the freedom back to the caller for the detail how to manage all available events from an aggregate,
maybe using something like GenStage
or others, depends on their business needs.
Event.Structure used to grouping all necessary properties for the domain event, which including