generate SendAndClose() and CloseAndRecv() on streams. #7
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "protoc-gen-micro-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is applicable on cmd/protoc-gen-micro plugin.
This PR adds method SendAndClose() and CloseAndRecv() on stream.
So that nobody who comes directly from using grpc vanilla client don't get confused on finding SendAndClose() and CloseAndRecv() method.
However Close() method is still presend along with these two methods.
CloseAndRecv looks strange may be RecvAndClose ? Can you share the link to docs or for some generated code to check?
RecvAndClose may sounds good but under the hood first it fires close and then Recv that's why it is CloseAndRecv.
greeting.proto
greeting.pb.micro.go
Thanks