Documentation ¶
Index ¶
- Variables
- func NewDbgWorker(realTty bool, opts debugger.Opts) (*debugger.Debugger, error)
- func NewRpcClient(t *testing.T, ctx context.Context, addr string, stateStruct am.Struct, ...) *rpc.Client
- func NewRpcTest(t *testing.T, ctx context.Context, worker *am.Machine, consumer *am.Machine) (*am.Machine, *rpc.Server, *rpc.Client)
- func RpcGet[G any](t *testing.T, c *rpc.Client, name server.GetField, defVal G) G
- func RpcShutdown(ctx context.Context, c *rpc.Client, s *rpc.Server)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkerRpcAddr = "localhost:53480" WorkerTelemetryAddr = "localhost:53470" EnvAmDbgWorkerRpcAddr = "AM_DBG_WORKER_RPC_ADDR" EnvAmDbgWorkerTelemetryAddr = "AM_DBG_WORKER_TELEMETRY_ADDR" )
Functions ¶
func NewDbgWorker ¶ added in v0.8.0
NewDbgWorker creates a new worker instance of the am-dbg.
func NewRpcClient ¶
func NewRpcTest ¶
func NewRpcTest( t *testing.T, ctx context.Context, worker *am.Machine, consumer *am.Machine, ) (*am.Machine, *rpc.Server, *rpc.Client)
NewRpcTest creates a new rpc server and client for testing, which exposes the passed worker as a remote one, and binds payloads to the optional consumer. TODO sync with rpc/rpc_test
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
am-dbg-worker
AM_DBG_WORKER_ADDR AM_DBG_ADDR
|
AM_DBG_WORKER_ADDR AM_DBG_ADDR |
Click to show internal directories.
Click to hide internal directories.