Remove the 2nd RecvProto in the generated code for client streaming

This commit is contained in:
iamqizhao
2015-02-18 22:15:13 -08:00
parent 43c0bbeb1f
commit 634392a1c6
8 changed files with 96 additions and 76 deletions

View File

@ -43,10 +43,10 @@ import (
"sync"
"github.com/golang/protobuf/proto"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/transport"
"golang.org/x/net/context"
)
type methodHandler func(srv interface{}, ctx context.Context, buf []byte) (proto.Message, error)
@ -57,14 +57,6 @@ type MethodDesc struct {
Handler methodHandler
}
type streamHandler func(srv interface{}, stream ServerStream) error
// StreamDesc represents a streaming RPC service's method specification.
type StreamDesc struct {
StreamName string
Handler streamHandler
}
// ServiceDesc represents an RPC service's specification.
type ServiceDesc struct {
ServiceName string