Documentation ¶
Index ¶
- Variables
- func NewRpcClient(t *testing.T, ctx context.Context, addr string, stateStruct am.Struct, ...) *arpc.Client
- func NewRpcTest(t *testing.T, ctx context.Context, worker *am.Machine, getter func(string) any) (*am.Machine, *arpc.Server, *arpc.Client)
- func NewTestWorker(realTty bool, opts debugger.Opts) (*debugger.Debugger, error)
- func RpcGet[G any](t *testing.T, c *arpc.Client, name server.GetField, defVal G) G
- func RpcShutdown(ctx context.Context, c *arpc.Client, s *arpc.Server)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkerRpcAddr = "localhost:53480" WorkerTelemetryAddr = "localhost:53470" )
Functions ¶
func NewRpcClient ¶
func NewRpcTest ¶
func NewRpcTest( t *testing.T, ctx context.Context, worker *am.Machine, getter func(string) any, ) (*am.Machine, *arpc.Server, *arpc.Client)
NewRpcTest creates a new rpc server and client for testing, which expose the passed worker instance, along with its RPC getter.
func NewTestWorker ¶
NewTestWorker creates a new worker instance of the am-dbg.
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.