states

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ExampleStates contains all the states for the Example machine.
	ExampleStates = ssE
	// ExampleGroups contains all the state groups for the Example machine.
	ExampleGroups = sgE
)
View Source
var ExampleSchema = ssrpc.StateSourceSchema.Merge(am.Schema{

	ssE.Foo: {Remove: sgE.Mutex},
	ssE.Bar: {Remove: sgE.Mutex},
	ssE.Baz: {Remove: sgE.Mutex},
})

ExampleSchema represents all relations and properties of ExampleStates. inherit from rpc/WorkerSchema

View Source
var Exception = am.StateException

Exception is a type alias for the Exception state.

View Source
var Ready = am.StateReady

Ready is a type alias for the Ready state.

View Source
var Start = am.StateStart

Start is a type alias for the Start state.

Functions

This section is empty.

Types

type ExampleGroupsDef

type ExampleGroupsDef struct {
	Mutex S
}

ExampleGroupsDef contains all the state groups Example state machine.

type ExampleStatesDef

type ExampleStatesDef struct {
	*am.StatesBase

	Foo string
	Bar string
	Baz string

	// inherit from rpc/StateSourceStatesDef
	*ssrpc.StateSourceStatesDef
}

ExampleStatesDef contains all the states of the Example state machine.

type S

type S = am.S

S is a type alias for a list of state names.

type State added in v0.19.0

type State = am.State

State is a type alias for a state definition. See am.State.

Jump to

Keyboard shortcuts

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