states

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// UIBaseStates contains all the states for the UIBase state-machine.
	UIBaseStates = ssB
	// UIBaseGroups contains all the state groups for the UIBase state-machine.
	UIBaseGroups = sgB
)
View Source
var (

	// UIChatStates contains all the states for the UIChat state-machine.
	UIChatStates = ssC
	// UIChatGroups contains all the state groups for the UIChat state-machine.
	UIChatGroups = sgC
)
View Source
var (

	// UIStoriesStates contains all the states for the UIStories state-machine.
	UIStoriesStates = ssU
	// UIStoriesGroups contains all the state groups for the UIStories state-machine.
	UIStoriesGroups = sgU
)
View Source
var (

	// UIClockStates contains all the states for the UIClock state-machine.
	UIClockStates = ssL
	// UIClockGroups contains all the state groups for the UIClock state-machine.
	UIClockGroups = sgL
)
View Source
var Exception = am.StateException

Exception is a type alias for the exception state.

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.

UIBaseSchema represents all relations and properties of UIBaseStates.

View Source
var UIChatSchema = SchemaMerge(

	UIBaseSchema,
	am.Schema{})

UIChatSchema represents all relations and properties of UIChatStates.

View Source
var UIClockSchema = SchemaMerge(

	UIBaseSchema,
	am.Schema{})

UIClockSchema represents all relations and properties of UIClockStates.

View Source
var UIStoriesSchema = SchemaMerge(

	UIBaseSchema,
	am.Schema{

		ssU.ReqReplaceContent: {Multi: true},
		ssU.ReplaceContent:    {},
	})

UIStoriesSchema represents all relations and properties of UIStoriesStates.

Functions

func NewUIChat

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

NewUIChat creates a new UIChat state-machine in the most basic form.

func NewUIClock

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

NewUIClock creates a new UIClock state-machine in the most basic form.

func NewUIStories

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

NewUIStories creates a new UIStories state-machine in the most basic form.

Types

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.

type UIBaseGroupsDef

type UIBaseGroupsDef struct {
}

UIBaseGroupsDef contains all the state groups UIBase state-machine.

type UIBaseStatesDef

type UIBaseStatesDef struct {
	*am.StatesBase

	// inherit from BasicStatesDef
	*ss.BasicStatesDef
	// inherit from DisposedStatesDef
	*ss.DisposedStatesDef
	// inherit from WorkerStatesDef
	*ssrpc.WorkerStatesDef
}

UIBaseStatesDef contains all the states of the UIBase state-machine.

type UIChatGroupsDef

type UIChatGroupsDef struct {
}

UIChatGroupsDef contains all the state groups UIChat state-machine.

type UIChatStatesDef

type UIChatStatesDef struct {
	*am.StatesBase

	// inherit from BasicStatesDef
	*UIBaseStatesDef
}

UIChatStatesDef contains all the states of the UIChat state-machine.

type UIClockGroupsDef

type UIClockGroupsDef struct {
}

UIClockGroupsDef contains all the state groups UIClock state-machine.

type UIClockStatesDef

type UIClockStatesDef struct {
	*am.StatesBase

	// inherit from UIBaseStatesDef
	*UIBaseStatesDef
}

UIClockStatesDef contains all the states of the UIClock state-machine.

type UIStoriesGroupsDef

type UIStoriesGroupsDef struct {
}

UIStoriesGroupsDef contains all the state groups UIStories state-machine.

type UIStoriesStatesDef

type UIStoriesStatesDef struct {
	*am.StatesBase

	ReqReplaceContent string
	ReplaceContent    string

	// inherit from UIBaseStatesDef
	*UIBaseStatesDef
}

UIStoriesStatesDef contains all the states of the UIStories state-machine.

Jump to

Keyboard shortcuts

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