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

Method FullDuplexCall

interop/grpc_testing/test_grpc.pb.go:154–162  ·  view source on GitHub ↗
(ctx context.Context, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

152type TestService_StreamingInputCallClient = grpc.ClientStreamingClient[StreamingInputCallRequest, StreamingInputCallResponse]
153
154func (c *testServiceClient) FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StreamingOutputCallRequest, StreamingOutputCallResponse], error) {
155 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
156 stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[2], TestService_FullDuplexCall_FullMethodName, cOpts...)
157 if err != nil {
158 return nil, err
159 }
160 x := &grpc.GenericClientStream[StreamingOutputCallRequest, StreamingOutputCallResponse]{ClientStream: stream}
161 return x, nil
162}
163
164// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
165type TestService_FullDuplexCallClient = grpc.BidiStreamingClient[StreamingOutputCallRequest, StreamingOutputCallResponse]

Callers

nothing calls this directly

Calls 2

StaticMethodFunction · 0.92
NewStreamMethod · 0.65

Tested by

no test coverage detected