Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountOpened ¶
type AccountOpened struct { DomainEvent Number string Balance money.Money }
func NewAccountOpened ¶ added in v0.8.0
func NewAccountOpened(aggID uuid.UUID, number string, balance money.Money) AccountOpened
type DomainEvent ¶ added in v0.8.0
func NewDomainEvent ¶ added in v0.8.0
func NewDomainEvent(aggID uuid.UUID) DomainEvent
func (DomainEvent) AggregateID ¶ added in v0.8.0
func (e DomainEvent) AggregateID() uuid.UUID
func (DomainEvent) EventID ¶ added in v0.8.0
func (e DomainEvent) EventID() uuid.UUID
type MoneyDeposited ¶
type MoneyDeposited struct { DomainEvent Amount money.Money Balance money.Money }
func NewMoneyDeposited ¶ added in v0.8.0
func NewMoneyDeposited(aggID uuid.UUID, amount, balance money.Money) MoneyDeposited
type MoneyReceived ¶
type MoneyReceived struct { DomainEvent From string To string Amount money.Money Balance money.Money }
func NewMoneyReceived ¶ added in v0.8.0
func NewMoneyReceived(aggID uuid.UUID, from, to string, amount, balance money.Money) MoneyReceived
type MoneyTransferred ¶
type MoneyTransferred struct { DomainEvent From string To string Amount money.Money Balance money.Money }
func NewMoneyTransferred ¶ added in v0.8.0
func NewMoneyTransferred(aggID uuid.UUID, from, to string, amount, balance money.Money) MoneyTransferred
Click to show internal directories.
Click to hide internal directories.