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

Index

Constants

This section is empty.

Variables

View Source
var (

	// WorkerStates contains all the states for the NetMach machine.
	WorkerStates = ws

	// WorkerGroups contains all the state groups for the NetMach machine.
	WorkerGroups = wg
)
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.

View Source
var WorkerSchema = ssam.BasicSchema.Merge(

	ssrpc.StateSourceSchema,
	am.Schema{

		ws.CallOp: {
			Multi:   true,
			Require: S{ws.Start},
		},

		ws.Event: {
			Multi:   true,
			Require: S{ws.Start},
		},

		ws.Value1: {Remove: wg.Values},
		ws.Value2: {Remove: wg.Values},
		ws.Value3: {Remove: wg.Values},
	})

WorkerSchema represents all relations and properties of WorkerStates.

Functions

This section is empty.

Types

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.

type WorkerGroupsDef

type WorkerGroupsDef struct {

	// Values group contains mutually exclusive values.
	Values S
}

WorkerGroupsDef contains all the state groups of the NetMach state machine.

type WorkerStatesDef

type WorkerStatesDef struct {
	*am.StatesBase

	Event  string
	Value1 string
	Value2 string
	Value3 string
	CallOp string

	// inherit from BasicSchema
	*ssam.BasicStatesDef
	// inherit from StateSourceStatesDef
	*ssrpc.StateSourceStatesDef
}

WorkerStatesDef contains all the states of the NetMach state machine.

Jump to

Keyboard shortcuts

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