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

Method SendAndClose

stream_interfaces.go:225–227  ·  view source on GitHub ↗

SendAndClose pushes the unary response to the client. The type of message which can be sent is determined by the Res type parameter of the clientStreamServer receiver.

(m *Res)

Source from the content-addressed store, hash-verified

223// which can be sent is determined by the Res type parameter of the
224// clientStreamServer receiver.
225func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error {
226 return x.ServerStream.SendMsg(m)
227}
228
229// Recv reads one message from the stream of requests generated by the client.
230// The type of the message returned is determined by the Req type parameter

Callers

nothing calls this directly

Calls 1

SendMsgMethod · 0.65

Tested by

no test coverage detected