states

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreatingExpense    = "CreatingExpense"
	ExpenseCreated     = "ExpenseCreated"
	WaitingForApproval = "WaitingForApproval"
	ApprovalGranted    = "ApprovalGranted"
	PaymentInProgress  = "PaymentInProgress"
	PaymentCompleted   = "PaymentCompleted"
)

Variables

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

type S

type S = am.S

S is a type alias for a list of state names.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL