Versions in this module Expand all Collapse all v1 v1.0.0 Jan 23, 2021 Changes in this version + type Cmd struct + func NewCmd(cfg *CmdCfg) (Cmd, error) + func (c Cmd) Action() CmdAction + func (c Cmd) CorrelationKey() string + func (c Cmd) Data() []byte + func (c Cmd) ID() string + func (c Cmd) Time() time.Time + type CmdAction string + const CreateReport + const CreateTxn + const ProcessTxn + const WriteData + func (ca CmdAction) String() string + type CmdCfg struct + Action CmdAction + CorrelationKey string + Data interface{} + Time time.Time + type Event struct + func NewEvent(cfg *EventCfg) (Event, error) + func (e Event) Action() EventAction + func (e Event) AggregateID() string + func (e Event) CorrelationKey() string + func (e Event) Data() []byte + func (e Event) ID() string + func (e Event) IsReplay() bool + func (e Event) Time() time.Time + type EventAction string + const AccountDeposited + const AccountLimitExceeded + const AccountWithdrawn + const DataWritten + const DuplicateTxn + const TxnCreateFailed + const TxnCreated + const TxnRead + func (ea EventAction) String() string + type EventCfg struct + Action EventAction + AggregateID string + CorrelationKey string + Data interface{} + IsReplay bool + Time time.Time + type Transaction struct + CustomerID string + ID string + LoadAmount float64 + Time time.Time