Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExceptionTransition ¶
type ExceptionTransition[T StatefulObjectIf] struct { // contains filtered or unexported fields }
type ExpressionCondtion ¶
type ExpressionCondtion[T StatefulObjectIf] struct { // contains filtered or unexported fields }
func (*ExpressionCondtion[T]) Eval ¶
func (expr *ExpressionCondtion[T]) Eval(obj T, params map[string]any) (bool, error)
func (*ExpressionCondtion[T]) Parse ¶
func (expr *ExpressionCondtion[T]) Parse(v string) error
func (*ExpressionCondtion[T]) SetAdvance ¶
func (expr *ExpressionCondtion[T]) SetAdvance(f func(any) (bool, error))
type State ¶
type State[T StatefulObjectIf] struct { // contains filtered or unexported fields }
func (*State[T]) Resolves ¶
func (st *State[T]) Resolves(t ...*Transition[T])
type StateDescriptor ¶
type StateObjectDescriptor ¶
type StateObjectDescriptor struct { Name string Description string States []StateDescriptor }
type StatefulObjectIf ¶
type Transition ¶
type Transition[T StatefulObjectIf] struct { // contains filtered or unexported fields }
func BindHitThen ¶
func BindHitThen[T StatefulObjectIf](cond func(T, map[string]any) (bool, error), next string) *Transition[T]
type VFSM ¶
type VFSM[T StatefulObjectIf] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.