package states

Import Path
	/examples/cli/states (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files Package states contains a stateful schema-v2 for a CLI. Bootstrapped with am-gen. Edit manually or re-gen & merge.
Package-Level Type Names (total 2)
/* sort by: | */
CliGroupsDef contains all the state groups Cli state machine. var CliGroups
CliStatesDef contains all the states of the Cli state machine. Bar2 string inherit from BasicStatesDef ErrHandlerTimeout indicates one of the state machine handlers has timed out. ErrNetwork indicates a generic network error. Healthcheck is a periodic request making sure that the machine is still alive. Heartbeat is a periodic state that ensures the integrity of the machine. Ready indicates the machine meets criteria to perform work. Start indicates the machine should be working. Removing start can force stop the machine. inherit from DisposedStatesDef Disposed indicates that the machine has disposed allocated resources and is ready to be garbage collected by calling [am.Machine.Dispose]. Disposing starts the machine disposal - first state-based and then calls [am.Machine.Dispose]. RegisterDisposal registers a disposal handler passed under the DisposedArgHandler key. Requires [DisposedHandlers] to be bound prior to the registration. Handlers registered via RegisterDisposal can block. Foo1 string StatesBase *am.StatesBase Exception is the only built-in state and mean a global error. All errors have to [State.Require] the Exception state. If [Machine.PanicToErr] is true, Exception will receive it. ( CliStatesDef) Names() machine.S ( CliStatesDef) SetNames(names machine.S) ( CliStatesDef) SetStateGroups(groups map[string][]int, order []string) ( CliStatesDef) StateGroups() (map[string][]int, []string) CliStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States var CliStates
Package-Level Variables (total 3)
CliGroups contains all the state groups for the Cli machine.
CliSchema represents all relations and properties of CliStates.
CliStates contains all the states for the Cli machine.