package states
import am "github.com/pancsta/asyncmachine-go/pkg/machine"
type S = am .S
var States = am .Schema {
CreatingExpense : {Remove : GroupExpense },
ExpenseCreated : {Remove : GroupExpense },
WaitingForApproval : {
Auto : true ,
Remove : GroupApproval ,
},
ApprovalGranted : {Remove : GroupApproval },
PaymentInProgress : {
Auto : true ,
Remove : GroupPayment ,
},
PaymentCompleted : {Remove : GroupPayment },
}
var (
GroupExpense = S {CreatingExpense , ExpenseCreated }
GroupApproval = S {WaitingForApproval , ApprovalGranted }
GroupPayment = S {PaymentInProgress , PaymentCompleted }
)
const (
CreatingExpense = "CreatingExpense"
ExpenseCreated = "ExpenseCreated"
WaitingForApproval = "WaitingForApproval"
ApprovalGranted = "ApprovalGranted"
PaymentInProgress = "PaymentInProgress"
PaymentCompleted = "PaymentCompleted"
)
var Names = S {CreatingExpense , ExpenseCreated , WaitingForApproval , ApprovalGranted , PaymentInProgress , PaymentCompleted }
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .