ServerStreamingClient represents the client side of a server-streaming (one request, many responses) RPC. It is generic over the type of the response message. It is used in generated code.
| 22 | // request, many responses) RPC. It is generic over the type of the response |
| 23 | // message. It is used in generated code. |
| 24 | type ServerStreamingClient[Res any] interface { |
| 25 | // Recv receives the next response message from the server. The client may |
| 26 | // repeatedly call Recv to read messages from the response stream. If |
| 27 | // io.EOF is returned, the stream has terminated with an OK status. Any |
| 28 | // other error is compatible with the status package and indicates the |
| 29 | // RPC's status code and message. |
| 30 | Recv() (*Res, error) |
| 31 | |
| 32 | // ClientStream is embedded to provide Context, Header, and Trailer |
| 33 | // functionality. No other methods in the ClientStream should be called |
| 34 | // directly. |
| 35 | ClientStream |
| 36 | } |
| 37 | |
| 38 | // ServerStreamingServer represents the server side of a server-streaming (one |
| 39 | // request, many responses) RPC. It is generic over the type of the response |
nothing calls this directly
no outgoing calls
no test coverage detected