package dbg

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

Dependency Relation
	imports 13 packages, and imported by 9 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 machine ID all the states with relations TODO refac: Schema state names defining the indexes for diffs machine tags (*DbgMsgStruct) Clock(_ machine.S, _ string) uint64 (*DbgMsgStruct) Is(_ machine.S, _ machine.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 CalledStateNames(index) TODO rename to CalledStates, re-gen all assets Clocks is represents the machine 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 machine. transition. 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 machine.S) machine.S (*DbgMsgTx) CalledStateNames(statesIndex machine.S) machine.S (*DbgMsgTx) Clock(statesIndex machine.S, state string) uint64 (*DbgMsgTx) Index(statesIndex machine.S, state string) int (*DbgMsgTx) Is(statesIndex machine.S, states machine.S) bool (*DbgMsgTx) Is1(statesIndex machine.S, state string) bool TODO unify with Mut String TODO Sum() and TimeSum(idxs []int) TODO unify with Tx String *DbgMsgTx : DbgMsg 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/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 machine.Api, addr string, opts ...*Opts) error
Addr string Mach machine.Api TracerNoOp *machine.TracerNoOp 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 machine.Api) context.Context (*Tracer) MutationQueued(mach machine.Api, mut *machine.Mutation) ( Tracer) NewSubmachine(parent, machine machine.Api) ( Tracer) QueueEnd(machine machine.Api) (*Tracer) SchemaChange(mach machine.Api, _ machine.Schema) (*Tracer) TransitionEnd(tx *machine.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 machine.Api, addr string) *Tracer
Package-Level Functions (total 2)
func NewTracer(mach machine.Api, addr string) *Tracer
TransitionsToDbg sends transitions to the am-dbg server. opts: single optional opts struct.
Package-Level Constants (total 3)
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"