Documentation ¶
Index ¶
- func TaskFinish(state api.State) bool
- type Event
- type FSM
- func (F *FSM) AllowTransit(event Event) error
- func (F *FSM) CurrentFunc(currentFunc func(id, nodeName string) (api.State, error)) *FSM
- func (F *FSM) CurrentState() (api.State, error)
- func (F *FSM) Guard(guard map[string]api.State) *FSM
- func (F *FSM) ID(id string) *FSM
- func (F *FSM) LastState(lastState api.State)
- func (F *FSM) NodeName(nodeName string) *FSM
- func (F *FSM) StageSequence(stageSequence map[api.State]api.State) *FSM
- func (F *FSM) TaskStagCompleted(state api.State) bool
- func (F *FSM) Transit(event Event) error
- func (F *FSM) UpdateFunc(updateFunc func(id, nodeName string, state api.State, event Event) error) *FSM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskFinish ¶
Types ¶
type Event ¶
func (Event) UniqueName ¶
type FSM ¶
type FSM struct {
// contains filtered or unexported fields
}
func (*FSM) AllowTransit ¶
func (*FSM) CurrentFunc ¶
Click to show internal directories.
Click to hide internal directories.