| "v.io/core/veyron2/context" |
| "v.io/core/veyron2/ipc/stream" |
| // 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, opts ...stream.ManagerOpt) (*context.T, stream.Manager, error) { |
| func (r *Runtime) GetStreamManager(ctx *context.T) stream.Manager { |
| func (r *Runtime) GetListenSpec(ctx *context.T) ipc.ListenSpec { |