package states

Import Path
	github.com/pancsta/cview/states (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files Package states contains state definitions for the cview Application state machine.
Package-Level Type Names (total 2)
/* sort by: | */
AppStatesDef contains all the states of the Application state machine. inherit from BasicStatesDef ErrHandlerTimeout indicates one of the state machine handlers has timed out. ErrNetwork indicates a generic network error. Healthcheck is a periodic request making sure that the machine is still alive. Heartbeat is a periodic state that ensures the integrity of the machine. Ready indicates the machine meets criteria to perform work. Start indicates the machine should be working. Removing start can force stop the machine. CviewStatesDef *CviewStatesDef CviewErrScreen indicates the screen couldn't be initialized, replaced, or suspended. CviewResuming indicates the application is re-entering terminal UI mode. CviewRunning indicates the event loop is polling for input events. CviewScreenInitialized indicates the tcell screen has been initialized. CviewScreenReplacing indicates a screen replacement is in progress. CviewStopped indicates the application has stopped and Run will return. CviewStopping indicates the application is shutting down. CviewSuspending indicates the application is leaving terminal UI mode. StatesBase *am.StatesBase Exception is the only built-in state and mean a global error. All errors have to [State.Require] the Exception state. If [Machine.PanicToErr] is true, Exception will receive it. ( AppStatesDef) Names() machine.S Prefix returns the nesting prefix for this state definition. ( AppStatesDef) SetNames(names machine.S) ( AppStatesDef) SetStateGroups(groups map[string][]int, order []string) ( AppStatesDef) StateGroups() (map[string][]int, []string) AppStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States var AppStates
CviewStatesDef contains all the states defined by cview. CviewErrScreen indicates the screen couldn't be initialized, replaced, or suspended. CviewResuming indicates the application is re-entering terminal UI mode. CviewRunning indicates the event loop is polling for input events. CviewScreenInitialized indicates the tcell screen has been initialized. CviewScreenReplacing indicates a screen replacement is in progress. CviewStopped indicates the application has stopped and Run will return. CviewStopping indicates the application is shutting down. CviewSuspending indicates the application is leaving terminal UI mode. StatesBase *am.StatesBase Exception is the only built-in state and mean a global error. All errors have to [State.Require] the Exception state. If [Machine.PanicToErr] is true, Exception will receive it. ( CviewStatesDef) Names() machine.S Prefix returns the nesting prefix for this state definition. ( CviewStatesDef) SetNames(names machine.S) ( CviewStatesDef) SetStateGroups(groups map[string][]int, order []string) ( CviewStatesDef) StateGroups() (map[string][]int, []string) CviewStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
Package-Level Variables (total 3)
AppSchema represents all relations and properties of AppStates.
AppStates contains all the states of the Application state machine.
CviewSchema represents all relations and properties of CviewStates.