Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTransaction = errors.New("invalid transaction") ErrTargetStatusEmpty = errors.New("empty target status") )
errors
Functions ¶
func NewTransactionFromConfig ¶
NewTransactionFromConfig new transactions from config file
func NewTransactions ¶
NewTransactions new transactions
Types ¶
type Repo ¶
type Repo interface {
// add a transction into cache
Add(*Transaction)
// remove all transactions
Remove()
// remove namespace's transactions
RemoveNamespace(namespace string)
// remove a transaction by information
RemoveByTransaction(*Transaction)
// get target transaction by current information
GetTargetTranstion(namespace, curStatus, event string) *Transaction
}
Repo the functions of fsm interface
Click to show internal directories.
Click to hide internal directories.