Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback func(state StateType, evtCtxt *EventContext) (newEvtCtxt *EventContext, rv ReturnVal)
newEvtCtxt将在下一个状态被处理
type EventContext ¶
type Fsm ¶
type Fsm struct {
// contains filtered or unexported fields
}
func (*Fsm) SetLogFunc ¶
type FsmInst ¶
type FsmInst struct {
// contains filtered or unexported fields
}
func NewFsmInst ¶
func (*FsmInst) HandleEvent ¶
func (fsmInst *FsmInst) HandleEvent(evtCtxt *EventContext) error
func (*FsmInst) ResetState ¶
func (fsmInst *FsmInst) ResetState()
func (*FsmInst) UnmarshalJSON ¶
UnmarshalJSON 自定义反序列化方法
Click to show internal directories.
Click to hide internal directories.