states

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	A = "A"
	B = "B"
	C = "C"
	D = "D"
)

Variables

View Source
var Names = S{
	am.StateException,
	A,
	B,
	C,
	D,
}

Names is an ordered list of all the state names.

View Source
var States = am.Schema{
	A: {
		Auto:    true,
		Require: S{C},
	},
	B: {
		Multi: true,
		Add:   S{C},
	},
	C: {
		After: S{D},
	},
	D: {
		Add: S{C, B},
	},
}

States map defines relations and properties of states. TODO rename to rel

Functions

func NewRel added in v0.11.0

func NewRel(ctx context.Context) *am.Machine

Types

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