Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreatingExpense = "CreatingExpense" ExpenseCreated = "ExpenseCreated" WaitingForApproval = "WaitingForApproval" ApprovalGranted = "ApprovalGranted" PaymentInProgress = "PaymentInProgress" PaymentCompleted = "PaymentCompleted" )
Variables ¶
View Source
var ( GroupExpense = S{CreatingExpense, ExpenseCreated} GroupApproval = S{WaitingForApproval, ApprovalGranted} GroupPayment = S{PaymentInProgress, PaymentCompleted} )
View Source
var Names = S{CreatingExpense, ExpenseCreated, WaitingForApproval, ApprovalGranted, PaymentInProgress, PaymentCompleted}
Names is an ordered list of all the state names.
View Source
var States = am.Struct{ CreatingExpense: {Remove: GroupExpense}, ExpenseCreated: {Remove: GroupExpense}, WaitingForApproval: { Auto: true, Remove: GroupApproval, }, ApprovalGranted: {Remove: GroupApproval}, PaymentInProgress: { Auto: true, Remove: GroupPayment, }, PaymentCompleted: {Remove: GroupPayment}, }
States map defines relations and properties of states.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.