Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountOpened ¶
type AccountOpened struct { ID domain.Identifier Number string }
AccountOpened is an event which happens when an account is opened.
func (AccountOpened) EventType ¶
func (e AccountOpened) EventType() string
EventType implements domain.Event interface.
type MoneyDeposited ¶
type MoneyDeposited struct { ID domain.Identifier Amount int64 Balance int64 }
MoneyDeposited is an event which happens when an account is credited.
func (MoneyDeposited) EventType ¶
func (e MoneyDeposited) EventType() string
EventType implements domain.Event interface.
type MoneyWithdrawn ¶
type MoneyWithdrawn struct { ID domain.Identifier Amount int64 Balance int64 }
MoneyWithdrawn is an event which happens when an account is debited.
func (MoneyWithdrawn) EventType ¶
func (e MoneyWithdrawn) EventType() string
EventType implements domain.Event interface.
Click to show internal directories.
Click to hide internal directories.