states

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 = SchemaMerge(

	ssrpc.StateSourceSchema,
	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.

View Source
var SAdd = am.SAdd

SAdd is a func alias for merging lists of states.

View Source
var SchemaMerge = am.SchemaMerge

SchemaMerge is a func alias for extending an existing state structure.

View Source
var StateAdd = am.StateAdd

StateAdd is a func alias for adding to an existing state definition.

View Source
var StateSet = am.StateSet

StateSet is a func alias for replacing parts of an existing state definition.

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.

Jump to

Keyboard shortcuts

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