package states
Import Path
/tools/debugger/states (on go.dev)
Dependency Relation
imports 2 packages, and imported by 9 packages
Package-Level Type Names (total 4)
S is a type alias for a list of state names.
ServerGroupsDef contains all the state groups Server state machine.
var ServerGroups
ServerStatesDef contains all the states of the dbg server state machine,
used to listen for RPC connections and msgs.
ClientMsg string
ConnectEvent string
DisconnectEvent string
InitClient string
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.
( ServerStatesDef) Names() machine.S
( ServerStatesDef) SetNames(names machine.S)
( ServerStatesDef) SetStateGroups(groups map[string][]int, order []string)
( ServerStatesDef) StateGroups() (map[string][]int, []string)
ServerStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var ServerStates
State is a type alias for a state definition. See [am.State].
Package-Level Variables (total 19)
Exception is a type alias for the exception state.
GroupDebug contains states useful when debugging the debugger in another
debugger.
var GroupDialog S var GroupFilters S var GroupFocused S var GroupPlaying S var GroupViews S
Names is an ordered list of all the state names.
Ready is a type alias for the start state.
SAdd is a func alias for merging lists of states.
SchemaMerge is a func alias for extending an existing state schema.
ServerGroups contains all the state groups for the Server machine.
ServerSchema represents all relations and properties of ServerStates.
ServerStates contains all the states for the Server machine.
Start is a type alias for the start state.
StateAdd is a func alias for adding to an existing state definition.
States map defines relations and properties of states.
StateSet is a func alias for replacing parts of an existing state
definition.
Package-Level Constants (total 90)
const AddressFocused = "AddressFocused" const AfterFocus = "AfterFocus"
Back moves to the previous transition
BackStep moves to the previous transition's steps
const BuildingLog = "BuildingLog"
ClientListFocused is client list focused.
TODO rename to ClientListFocused
const ClientListVisible = "ClientListVisible" const ClientMsg = "ClientMsg" const ClientSelected = "ClientSelected" const ConnectEvent = "ConnectEvent" const DiagramsReady = "DiagramsReady" const DiagramsRendering = "DiagramsRendering" const DiagramsScheduled = "DiagramsScheduled" const DialogFocused = "DialogFocused" const DisconnectEvent = "DisconnectEvent" const ErrDiagrams = "ErrDiagrams" const ErrWeb = "ErrWeb" const ExportDialog = "ExportDialog" const FilterAutoCanceledTx = "FilterAutoCanceledTx" const FilterAutoTx = "FilterAutoTx" const FilterCanceledTx = "FilterCanceledTx" const FilterChecks = "FilterChecks"
FilterDisconn filters out disconnected clients
FilterEmptyTx is a filter for txs which didn't change state and didn't
run any self handler either
const FilterHealth = "FilterHealth"
FilterOutGroup filters out txs for states outside the selected group.
const FilterQueuedTx = "FilterQueuedTx" const FilterTraces = "FilterTraces"
Fwd moves to the next transition
FwdStep moves to the next transition's steps
const GcMsgs = "GcMsgs" const Heartbeat = "Heartbeat" const HelpDialog = "HelpDialog" const InitClient = "InitClient" const LogBuilt = "LogBuilt" const LogFocused = "LogFocused" const LogReaderEnabled = "LogReaderEnabled" const LogReaderFocused = "LogReaderFocused" const LogReaderVisible = "LogReaderVisible" const LogTimestamps = "LogTimestamps" const LogUpdated = "LogUpdated" const LogUserScrolled = "LogUserScrolled" const MatrixFocused = "MatrixFocused" const MatrixRain = "MatrixRain" const MatrixRainSelected = "MatrixRainSelected" const MatrixView = "MatrixView"
NarrowLayout activates when resized or started in a narrow TUI viewport.
const Paused = "Paused" const Playing = "Playing"
Redraw means the UI should have a full re-draw.
const RemoveClient = "RemoveClient" const Resized = "Resized"
ScrollToMutTx scrolls to a transition which mutated or called the
passed state,
If fwd is true, it scrolls forward, otherwise backwards.
const ScrollToStep = "ScrollToStep"
ScrollToTx scrolls to a specific transition.
const SelectingClient = "SelectingClient" const SetCursor = "SetCursor" const SetGroup = "SetGroup" const SshDisconn = "SshDisconn" const SshServer = "SshServer"
StateNameSelected states that a state name is selected somehwere in the
tree (and possibly other places).
TODO support a list of states
SwitchedClientTx is a completed SwitchingClientTx.
SwitchingClientTx switches to the given client and scrolls to the given
transaction (1-based tx index). Accepts Client.id and cursorTx1.
TailMode always shows the latest transition
const TimelineStepsFocused = "TimelineStepsFocused" const TimelineStepsHidden = "TimelineStepsHidden" const TimelineStepsScrolled = "TimelineStepsScrolled" const TimelineTxHidden = "TimelineTxHidden" const TimelineTxsFocused = "TimelineTxsFocused" const ToggleTool = "ToggleTool" const Toolbar1Focused = "Toolbar1Focused" const Toolbar2Focused = "Toolbar2Focused" const Toolbar3Focused = "Toolbar3Focused" const ToolRain = "ToolRain" const ToolToggled = "ToolToggled"
TODO rename to SchemaFocused
const TreeGroupsFocused = "TreeGroupsFocused" const TreeLogView = "TreeLogView" const TreeMatrixView = "TreeMatrixView" const UpdateFocus = "UpdateFocus" const UpdateLogReader = "UpdateLogReader" const UpdateLogScheduled = "UpdateLogScheduled" const UpdatingLog = "UpdatingLog"
UserBack is a user generated event
UserBackStep is a user generated event
UserFwd is a user generated event
UserFwdStep is a user generated event
const WebReq = "WebReq" const WebSocketDbg = "WebSocketDbg" const WebSocketDiag = "WebSocketDiag"
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |