Documentation
¶
Index ¶
- func If(condition types.Condition, thenStep types.Step, elseStep types.Step) types.Step
- func SetActor(actor types.Actor) types.Step
- func SetActorFromFunc(actorFunc func(state *types.State) types.Actor) types.Step
- func SetFlow(flow types.Flow) types.Step
- func SetFlowFromFunc(flowFunc func(state *types.State) types.Flow) types.Step
- type MergeSteps
- type Panic
- type SetFlowStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func If ¶
If is a `types.Step` which returns Actions of `thenStep` if `condition` is satisfied, or Actions of `elseStep` otherwise.
func SetActorFromFunc ¶
SetActorFromFunc sets the Actor depending on the State.
Types ¶
type MergeSteps ¶
MergeSteps merges actions of multiple steps into one Step.
type SetFlowStruct ¶
SetFlowStruct is the value returned by SetFlow.
func (*SetFlowStruct) String ¶
func (step *SetFlowStruct) String() string
String implements fmt.Stringer.
Click to show internal directories.
Click to hide internal directories.