states

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 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 ExampleStruct = StructMerge(

	ssrpc.WorkerStruct,
	am.Struct{

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

ExampleStruct 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 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.

View Source
var StructMerge = am.StructMerge

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

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/WorkerStatesDef
	*ssrpc.WorkerStatesDef
}

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