MCPcopy
hub / github.com/grpc/grpc-go / RunClient

Method RunClient

interop/grpc_testing/worker_service_grpc.pb.go:90–98  ·  view source on GitHub ↗
(ctx context.Context, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

88type WorkerService_RunServerClient = grpc.BidiStreamingClient[ServerArgs, ServerStatus]
89
90func (c *workerServiceClient) RunClient(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ClientArgs, ClientStatus], error) {
91 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
92 stream, err := c.cc.NewStream(ctx, &WorkerService_ServiceDesc.Streams[1], WorkerService_RunClient_FullMethodName, cOpts...)
93 if err != nil {
94 return nil, err
95 }
96 x := &grpc.GenericClientStream[ClientArgs, ClientStatus]{ClientStream: stream}
97 return x, nil
98}
99
100// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
101type WorkerService_RunClientClient = grpc.BidiStreamingClient[ClientArgs, ClientStatus]

Callers

nothing calls this directly

Calls 2

StaticMethodFunction · 0.92
NewStreamMethod · 0.65

Tested by

no test coverage detected