example

package
v0.0.0-...-be34c72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Generated by fsmgen. DO NOT EDIT.

Generated by fsmgen. DO NOT EDIT.

Index

Constants

View Source
const (
	TestMachineStateState1 fsm.State = "State1"
	TestMachineStateState2 fsm.State = "State2"
	TestMachineStateDone   fsm.State = "Done"
)
View Source
const (
	TestMachine2StateState1 fsm.State = "State1"
	TestMachine2StateState2 fsm.State = "State2"
	TestMachine2StateDone   fsm.State = "Done"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestMachine2FSM

type TestMachine2FSM interface {
	fsm.SupportsOptions
	Submit(ctx context.Context, int int) (fsm.TaskID, error)
}

type TestMachine2FSMBuilder_DoneStage

type TestMachine2FSMBuilder_DoneStage interface {
	FromDone(func(context.Context) error) TestMachine2FSMBuilder__FinalStage
}

type TestMachine2FSMBuilder_State1Stage

type TestMachine2FSMBuilder_State1Stage interface {
	FromState1(func(context.Context, TestMachine2State1Transitions, int) error) TestMachine2FSMBuilder_State2Stage
}

func NewTestMachine2FSMBuilder

func NewTestMachine2FSMBuilder() TestMachine2FSMBuilder_State1Stage

type TestMachine2FSMBuilder_State2Stage

type TestMachine2FSMBuilder_State2Stage interface {
	FromState2(func(context.Context, TestMachine2State2Transitions, int) error) TestMachine2FSMBuilder__FinalStage
}

type TestMachine2FSMBuilder__FinalStage

type TestMachine2FSMBuilder__FinalStage interface {
	BuildAndStart(context.Context, ...fsm.Option) (TestMachine2FSM, error)
}

type TestMachine2State1Transitions

type TestMachine2State1Transitions interface {
	ToState2(context.Context, int) error
}

type TestMachine2State2Transitions

type TestMachine2State2Transitions interface {
	ToDone(context.Context) error
}

type TestMachineFSM

type TestMachineFSM interface {
	fsm.SupportsOptions
	Submit(ctx context.Context, int int) (fsm.TaskID, error)
}

type TestMachineFSMBuilder_DoneStage

type TestMachineFSMBuilder_DoneStage interface {
	FromDone(func(context.Context) error) TestMachineFSMBuilder__FinalStage
}

type TestMachineFSMBuilder_State1Stage

type TestMachineFSMBuilder_State1Stage interface {
	FromState1(func(context.Context, TestMachineState1Transitions, int) error) TestMachineFSMBuilder_State2Stage
}

func NewTestMachineFSMBuilder

func NewTestMachineFSMBuilder() TestMachineFSMBuilder_State1Stage

type TestMachineFSMBuilder_State2Stage

type TestMachineFSMBuilder_State2Stage interface {
	FromState2(func(context.Context, TestMachineState2Transitions, int) error) TestMachineFSMBuilder__FinalStage
}

type TestMachineFSMBuilder__FinalStage

type TestMachineFSMBuilder__FinalStage interface {
	BuildAndStart(context.Context, ...fsm.Option) (TestMachineFSM, error)
}

type TestMachineState1Transitions

type TestMachineState1Transitions interface {
	ToState2(context.Context, int) error
}

type TestMachineState2Transitions

type TestMachineState2Transitions interface {
	ToDone(context.Context) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL