package dbg

Import Path
	/pkg/telemetry/dbg (on go.dev)

Dependency Relation
	imports 14 packages, and imported by 10 packages

Involved Source Files dbg.go
Package-Level Type Names (total 5)
/* sort by: | */
DbgMsg is the interface for the messages to be sent to the am-dbg server. TODO refac Msg Clock returns the state's clock, using the passed index Is returns true if the state is active, using the passed index *DbgMsgStruct *DbgMsgTx
DbgMsgStruct contains the state and relations data. TODO refac: MsgSchema list of group names and state indexes order of groups Machine ID parent am ID all the states with relations TODO refac: Schema state names defining the indexes for diffs am tags (*DbgMsgStruct) Clock(_ am.S, _ string) uint64 (*DbgMsgStruct) HasTag(tag string, val string) bool (*DbgMsgStruct) Is(_ am.S, _ am.S) bool *DbgMsgStruct : DbgMsg func github.com/pancsta/asyncmachine-go/pkg/graph.(*Graph).AddClient(msg *DbgMsgStruct) error func github.com/pancsta/asyncmachine-go/tools/debugger/server.(*RPCServer).DbgMsgSchema(msgSchema *DbgMsgStruct, _ *string) error
DbgMsgTx contains transition data. result of the transition TODO rename to IsAccepted Args map[string]string called states TODO remove. Deprecated use [CalledStatesIdxs] TODO rename to CalledStates, re-gen all assets Clocks is represents the am time [am.Time] from after the current transition. TODO refac to TimeAfter, re-gen all the assets Transition ID TODO refac: Id transition was triggered by an auto state is this a check (Can*) tx or mutation? is this a queued mutation? log entries created during the transition MachineID string MutQueueTick is the assigned queue tick when the tx will be executed. Only for IsQueued. TODO QueueDebug with all string entries for comparison MutQueueToken is the token of a prepended mutation, can be scheduled or executed, depending on IsQueued. log entries before the transition, which happened after the prev one queue length at the start of the transition TODO rename to QueueLen TODO change to int32 QueueDump []string QueueTick is the current queue tick in the am. transition. StackTrace string all the transition steps Time is human time. Don't send this over the wire. TODO remove or skip in msgpack TODO rename to HTime mutation type (*DbgMsgTx) ActiveStates(statesIndex am.S) am.S (*DbgMsgTx) CalledStateNames(statesIndex am.S) am.S (*DbgMsgTx) Clock(statesIndex am.S, state string) uint64 (*DbgMsgTx) Index(statesIndex am.S, state string) int (*DbgMsgTx) Is(statesIndex am.S, states am.S) bool (*DbgMsgTx) Is1(statesIndex am.S, state string) bool (*DbgMsgTx) IsIdx(idxs []int) bool TODO unify with Mut String (*DbgMsgTx) String() string TODO Sum() and TimeSum(idxs []int) TODO unify with Tx String (*DbgMsgTx) Url() string *DbgMsgTx : DbgMsg *DbgMsgTx : expvar.Var *DbgMsgTx : fmt.Stringer func github.com/pancsta/asyncmachine-go/tools/debugger.(*Debugger).CurrentTx() *DbgMsgTx func github.com/pancsta/asyncmachine-go/tools/debugger.(*Debugger).NextTx() *DbgMsgTx func github.com/pancsta/asyncmachine-go/tools/debugger.(*Debugger).PrevTx() *DbgMsgTx func github.com/pancsta/asyncmachine-go/tools/debugger/server.(*Client).Tx(idx int) *DbgMsgTx func github.com/pancsta/asyncmachine-go/tools/debugger/server.(*Client).TxExecutedBy(idx int) *DbgMsgTx func github.com/pancsta/asyncmachine-go/pkg/graph.(*Graph).ParseMsg(id string, msgTx *DbgMsgTx) func github.com/pancsta/asyncmachine-go/tools/debugger/server.(*RPCServer).DbgMsgTx(msgTx *DbgMsgTx, _ *string) error
WebSocket bool func TransitionsToDbg(mach am.Api, addr string, opts ...*Opts) error
Addr string Mach am.Api TracerNoOp *am.TracerNoOp TracerNoOp.Id string connect to a websocket ( Tracer) HandlerEnd(transition *machine.Transition, emitter string, handler string) ( Tracer) HandlerStart(transition *machine.Transition, emitter string, handler string) ( Tracer) Inheritable() bool (*Tracer) MachineDispose(id string) (*Tracer) MachineInit(mach am.Api) context.Context (*Tracer) MutationQueued(mach am.Api, mut *am.Mutation) ( Tracer) NewSubmachine(parent, machine machine.Api) ( Tracer) QueueEnd(machine machine.Api) (*Tracer) SchemaChange(mach am.Api, _ am.Schema) (*Tracer) TracerId() string (*Tracer) TransitionEnd(tx *am.Transition) ( Tracer) TransitionFinals(transition *machine.Transition) ( Tracer) TransitionInit(transition *machine.Transition) ( Tracer) TransitionStart(transition *machine.Transition) ( Tracer) VerifyStates(machine machine.Api) *Tracer : github.com/pancsta/asyncmachine-go/pkg/machine.Tracer func NewTracer(mach am.Api, addr string) *Tracer
Package-Level Functions (total 2)
func NewTracer(mach am.Api, addr string) *Tracer
TransitionsToDbg sends transitions to the am-dbg server. opts: single optional opts struct.
Package-Level Constants (total 4)
DbgAddr is the default address of the am-dbg server.
const DbgAddrWeb = "localhost:6832"
EnvAmDbgAddr is the address of a running am-dbg instance. "1" expands to "localhost:6831"
EnvAmDbgNoTrace disables collecting stack traces