Documentation
¶
Index ¶
Constants ¶
View Source
const EntityType = "loans"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func (*Aggregate) AcceptTermsAndConditions ¶
func (*Aggregate) ConfirmEmail ¶
func (*Aggregate) StartFlow ¶
func (a *Aggregate) StartFlow(cmd StartFlowCmd) error
type EmailConfirmed ¶
func (EmailConfirmed) Apply ¶
func (e EmailConfirmed) Apply(snapshot *Snapshot) error
type FlowStarted ¶
type FlowStarted struct {
es.Metadata[ID]
ClientID ClientID
TransactionID string
TotalAmount Money
}
func (FlowStarted) Apply ¶
func (f FlowStarted) Apply(state *Snapshot) error
type PhoneConfirmed ¶
type Snapshot ¶
type Snapshot struct {
ID ID
Version int
ClientID ClientID
TransactionID string
TotalAmount Money
State State
Term int
DeferredPct Percent
IsEmailConfirmed bool
}
func (Snapshot) SetVersion ¶
type StartFlowCmd ¶
Click to show internal directories.
Click to hide internal directories.