MCPcopy Create free account
hub / github.com/astercloud/aster / StateMachineImpl

Struct StateMachineImpl

pkg/workflow/state_machine.go:88–97  ·  view source on GitHub ↗

StateMachineImpl 状态机实现

Source from the content-addressed store, hash-verified

86
87// StateMachineImpl 状态机实现
88type StateMachineImpl struct {
89 name string
90 states map[string]State
91 transitions map[string][]*Transition
92 currentState string
93 history []*StateTransition
94 stateData map[string]any
95 mu sync.RWMutex
96 persistentStore StatePersistentStore
97}
98
99// StatePersistentStore 状态持久化接口
100type StatePersistentStore interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected