| // SetClient can be used to inject a mock client implementation into the context. |
| func SetClient(ctx *context.T, client ipc.Client) *context.T { |
| return context.WithValue(ctx, clientKey, client) |
| func (r *Runtime) SetNewClient(ctx *context.T, opts ...ipc.ClientOpt) (*context.T, ipc.Client, error) { |
| func (r *Runtime) GetClient(ctx *context.T) ipc.Client { |
| c, _ := ctx.Value(clientKey).(ipc.Client) |
| func (r *Runtime) NewServer(ctx *context.T, opts ...ipc.ServerOpt) (ipc.Server, error) { |
| func (r *Runtime) SetNewStreamManager(ctx *context.T) (*context.T, error) { |
| func (r *Runtime) GetListenSpec(ctx *context.T) ipc.ListenSpec { |