package types

Import Path
	/tools/debugger/types (on go.dev)

Dependency Relation
	imports 22 packages, and imported by 9 packages

Involved Source Files dbg_types.go
Package-Level Type Names (total 20)
/* sort by: | */
A is a struct for debugger arguments. It's a typesafe alternative to [am.A]. Addr string Amount int Args Args Args.ArgsBase am.ArgsBase Args.ArgsBase.ArgsApi machine.ArgsApi BuildClientList bool ClientId string Column int ConnId string ConnIds []string CurrTxRow int Cursor1 int CursorStep1 int TODO merge with Cursor1 DiagDom is parsed HTML for diagram generation. DiagName is the name of the diagram being generated. DiagType DiagramType DoneChan signals completion of a web handler. FilterBack bool FilterTxs bool FocusPrimitive is the UI element receiving focus. FromConnected bool FromPlaying bool Fwd bool Group string HttpRequest is for web server route handlers. HttpResponseWriter is for web server route handlers. Id string Immediate bool LogBuffer string LogLevel am.LogLevel 1-based index MouseFocus bool MsgStruct is the schema message from am-dbg protocol. MsgsTx is a batch of transaction messages. Row int SkipHistory bool State string Text string ToolName ToolName TrimHistory bool TxId string Uri string WebSocketConn is for WebSocket handlers. ( A) ArgsPrefix() string State is the default Any state. Clone for deep cloning. A : github.com/pancsta/asyncmachine-go/pkg/machine.ArgsApi
ArgsBase am.ArgsBase ArgsBase.ArgsApi machine.ArgsApi ( Args) ArgsPrefix() string State is the default Any state. Clone for deep cloning. Args : github.com/pancsta/asyncmachine-go/pkg/machine.ArgsApi
ARpc is a subset of A, that can be passed over RPC. Addr string Amount int Args Args Args.ArgsBase am.ArgsBase Args.ArgsBase.ArgsApi machine.ArgsApi BuildClientList bool ClientId string Column int ConnId string ConnIds []string CurrTxRow int Cursor1 int CursorStep1 int TODO merge with Cursor1 FilterBack bool FilterTxs bool FromConnected bool FromPlaying bool Fwd bool Group string Id string Immediate bool LogBuffer string LogLevel am.LogLevel LogRebuildEnd int MouseFocus bool Row int SkipHistory bool State string Text string ToolName ToolName TrimHistory bool TxId string Uri string ( ARpc) ArgsPrefix() string State is the default Any state. Clone for deep cloning. ARpc : github.com/pancsta/asyncmachine-go/pkg/machine.ArgsApi
DiagramType is a type of a diagram. Value string ( DiagramType) String() string DiagramType : expvar.Var DiagramType : fmt.Stringer var DiagramTypeGraph var DiagramTypeMach var DiagramTypeState var DiagramTypeSteps
Filters controls which transitions and log entries are shown. LogLevel am.LogLevel SkipAutoCanceledTx bool SkipAutoTx bool SkipCanceledTx bool SkipChecks bool SkipEmptyTx bool SkipHealthTx bool SkipOutGroup bool SkipQueuedTx bool SkipRpcMach bool (*Filters) Equal(filters *Filters) bool func (*Filters).Equal(filters *Filters) bool
Args is for logReaderWhenArgs only ClosedAt is human time when this entry was closed, so it can be disposed. CreatedAt is machine time when this entry was created Kind LogReaderKind Mach is for logReaderPipeIn, logReaderPipeOut, logReaderMention Pipe is for logReaderPipeIn, logReaderPipeOut QueueTick is for logReaderWhenQueue only states are empty for logReaderWhenQueue Ticks is for logReaderWhenTime only func github.com/pancsta/asyncmachine-go/tools/debugger.(*Client).GetReaderEntry(txId string, idx int) *LogReaderEntry func github.com/pancsta/asyncmachine-go/tools/debugger.(*Client).AddReaderEntry(txId string, entry *LogReaderEntry) int
EntryIdx int TxId string
const LogReaderCtx const LogReaderPipeIn const LogReaderPipeOut const LogReaderWhen const LogReaderWhenArgs const LogReaderWhenNot const LogReaderWhenQueue const LogReaderWhenTime
selected group HumanTime time.Time MachId string MachTime uint64 QueueTick uint64 selected state TODO remove TxId string (*MachAddress) Clone() *MachAddress String returns a full mach URL. StringBase returns a mach URL without GET params (unless no tx ID). Empty string ret if no link. *MachAddress : expvar.Var *MachAddress : fmt.Stringer func ParseMachUrl(u string) (*MachAddress, error) func (*MachAddress).Clone() *MachAddress func github.com/pancsta/asyncmachine-go/tools/debugger.(*Debugger).MachAddr() *MachAddress func github.com/pancsta/asyncmachine-go/tools/debugger.(*Debugger).GoToMachAddress(addr *MachAddress, skipHistory bool) bool
Id string Time uint64
TODO split to group ID, labels GroupsOrder []string Hash string
Transitions which reported this one as their source ForksLabels []string ReaderEntries []*LogReaderEntryPtr QueueTick when this tx should be executed StatesAdded []int StatesRemoved []int StatesTouched []int TimeDiff uint64 TimeSum is machine time after this transition. func github.com/pancsta/asyncmachine-go/tools/debugger/server.(*Client).TxParsed(idx int) *MsgTxParsed
Params are CLI params for am-dbg, also used as internal state via Debugger.Params. AddrHttp is the computed HTTP server address (ListenAddr port+1). AddrRpc is the RPC listen address (same as ListenAddr). AddrSsh is the computed SSH server address (ListenAddr port+2). CleanOnConnect bool DbgLogger is the file logger for this instance. DbgOtel bool DebugAddr string EnableClipboard bool EnableMouse bool FilterAutoCanceledTx bool FilterAutoTx bool FilterCanceledTx bool FilterChecks bool FilterDisconn bool FilterEmptyTx bool FilterGroup bool FilterHealthTx bool FilterLogLevel am.LogLevel FilterQueuedTx bool FilterRpcMachs bool Filters is the active set of transition filters. FwdData []string Id is the ID of this asyncmachine (for debugging). ImportData string ListenAddr string LogLevel is the log level of this instance (for debugging). LogOpsTtl time.Duration MachUrl string MaxMemMb int OutputCallLog bool OutputClients bool OutputDiagGroup ParamsOutDiagGroup OutputDiagTx ParamsOutDiagTx OutputDiagrams ParamsOutputDiagrams OutputDir string OutputGraph bool OutputLog bool OutputTx bool Print is the output function for status messages PrintVersion bool ProfCpu bool ProfMem bool ProfSrv string RaceDetector bool Repl bool Screen is an optional tcell screen override (tests, SSH). SelectConnected bool StartupView string TailMode bool UiMcp bool UiSsh bool UiWeb bool Version is the computed build version string. ViewExpandLinks bool ViewLogWrap bool ViewNarrow bool ViewRain bool ViewReader bool ViewTheme string ViewTimelines ParamsViewTimelines func GetLogger(params *Params, dir string) *log.Logger func HandleProfMem(logger *log.Logger, p *Params) func StartCpuProfile(logger *log.Logger, p *Params) func() func StartCpuProfileSrv(ctx context.Context, logger *log.Logger, p *Params) func github.com/pancsta/asyncmachine-go/tools/debugger.New(ctx context.Context, p Params) (*debugger.Debugger, error) func github.com/pancsta/asyncmachine-go/tools/debugger/server.New(mach *am.Machine, addr string, p Params) (cmux.CMux, *http.Server, error) func github.com/pancsta/asyncmachine-go/internal/testing.NewDbgWorker(realTty bool, p Params) (*debugger.Debugger, error)
ParamsOutDiagGroup is an enum for --output-diagrams-group Value string (*ParamsOutDiagGroup) UnmarshalText(b []byte) error *ParamsOutDiagGroup : encoding.TextUnmarshaler var ParamsOutDiagGroupHide var ParamsOutDiagGroupNone var ParamsOutDiagGroupSkip
ParamsOutDiagTx is an enum for --output-diagrams-group Value string (*ParamsOutDiagTx) UnmarshalText(b []byte) error *ParamsOutDiagTx : encoding.TextUnmarshaler var ParamsOutDiagTxCalled var ParamsOutDiagTxMutated var ParamsOutDiagTxNone var ParamsOutDiagTxRelations var ParamsOutDiagTxTouched
ParamsOutputDiagrams is an enum for --output-diagrams Value int (*ParamsOutputDiagrams) UnmarshalText(b []byte) error *ParamsOutputDiagrams : encoding.TextUnmarshaler var ParamsOutputDiagramsNone var ParamsOutputDiagramsOne var ParamsOutputDiagramsThree var ParamsOutputDiagramsTwo
ParamsViewTimelines is an enum for --view-timelines Value int (*ParamsViewTimelines) UnmarshalText(b []byte) error *ParamsViewTimelines : encoding.TextUnmarshaler var ParamsViewTimelinesNone var ParamsViewTimelinesOne var ParamsViewTimelinesTwo
Label string Source *MachAddress StateNames am.S
ID of this event (eg refresh) Group string ID of this diagram (eg mach ID, state name...)
Package-Level Functions (total 6)
GetLogger returns a file logger, according to params.
func HandleProfMem(logger *log.Logger, p *Params)
TODO
func StartCpuProfile(logger *log.Logger, p *Params) func()
Package-Level Variables (total 66)
ArgsRpc will be available in the REPL.
"", "hide", "skip"
"", "called", "changed", "touched"
"", "called", "changed", "touched"
"", "called", "changed", "touched"
"", "called", "changed", "touched"
"", "called", "changed", "touched"
"", "called", "changed", "touched"
0, 1, 2, 3
0, 1, 2
StateCalls is a list binding args to state names.
var ToolNames enum.Enum[...]