Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTransaction = errcode.New("invalid transaction") ErrTargetStatusEmpty = errcode.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 transaction into cache Add(*Transaction) // Remove all transactions Remove() // RemoveNamespace remove namespace's transactions RemoveNamespace(namespace string) // RemoveByTransaction remove a transaction by information RemoveByTransaction(*Transaction) // GetTargetTransaction get target transaction by current information GetTargetTransaction(namespace, curStatus, event string) *Transaction }
Repo the functions of fsm interface
Click to show internal directories.
Click to hide internal directories.