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

Method StreamingOutputCall

interop/grpc_testing/test_grpc.pb.go:122–136  ·  view source on GitHub ↗
(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

120}
121
122func (c *testServiceClient) StreamingOutputCall(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingOutputCallResponse], error) {
123 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
124 stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[0], TestService_StreamingOutputCall_FullMethodName, cOpts...)
125 if err != nil {
126 return nil, err
127 }
128 x := &grpc.GenericClientStream[StreamingOutputCallRequest, StreamingOutputCallResponse]{ClientStream: stream}
129 if err := x.ClientStream.SendMsg(in); err != nil {
130 return nil, err
131 }
132 if err := x.ClientStream.CloseSend(); err != nil {
133 return nil, err
134 }
135 return x, nil
136}
137
138// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
139type TestService_StreamingOutputCallClient = grpc.ServerStreamingClient[StreamingOutputCallResponse]

Callers

nothing calls this directly

Calls 4

StaticMethodFunction · 0.92
NewStreamMethod · 0.65
SendMsgMethod · 0.65
CloseSendMethod · 0.65

Tested by

no test coverage detected