states

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package states contains a stateful schema-v2 for MachTemplate. Bootstrapped with am-gen. Edit manually or re-gen & merge.

Index

Constants

This section is empty.

Variables

View Source
var (

	// MachTemplateStates contains all the states for the MachTemplate machine.
	MachTemplateStates = ssM
	// MachTemplateGroups contains all the state groups for the MachTemplate machine.
	MachTemplateGroups = sgM
)
View Source
var Exception = am.StateException

Exception is a type alias for the Exception state.

View Source
var MachTemplateSchema = ssam.BasicSchema.Merge(

	ssam.ConnectedSchema,

	ssam.DisposedSchema,

	ssrpc.StateSourceSchema,
	am.Schema{

		ssM.ErrExample: {
			Require: S{ssM.Exception},
		},
		ssM.Foo: {
			Require: S{ssM.Bar},
		},
		ssM.Bar: {},
		ssM.Baz: {
			Multi: true,
		},
		ssM.BazDone: {
			Multi: true,
		},
		ssM.Channel: {},
	})

MachTemplateSchema represents all relations and properties of MachTemplateStates.

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 MachTemplateGroupsDef

type MachTemplateGroupsDef struct {
	*ssam.ConnectedGroupsDef
	Group1 S
	Group2 S
}

MachTemplateGroupsDef contains all the state groups MachTemplate state machine.

type MachTemplateStatesDef

type MachTemplateStatesDef struct {
	*am.StatesBase

	ErrExample string
	Foo        string
	Bar        string
	Baz        string
	BazDone    string
	Channel    string

	// inherit from BasicStatesDef
	*ssam.BasicStatesDef
	// inherit from ConnectedStatesDef
	*ssam.ConnectedStatesDef
	// inherit from DisposedStatesDef
	*ssam.DisposedStatesDef
	// inherit from StateSourceStatesDef
	*ssrpc.StateSourceStatesDef
}

MachTemplateStatesDef contains all the states of the MachTemplate state machine.

type S

type S = am.S

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

type State

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