Documentation ¶
Overview ¶
Package stream is a generated protocol buffer package.
It is generated from these files:
greet.proto
It has these top-level messages:
StreamReq StreamResp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStreamGreeterServer ¶
func RegisterStreamGreeterServer(s *grpc.Server, srv StreamGreeterServer)
Types ¶
type StreamGreeterClient ¶
type StreamGreeterClient interface {
Greet(ctx context.Context, opts ...grpc.CallOption) (StreamGreeter_GreetClient, error)
}
func NewStreamGreeterClient ¶
func NewStreamGreeterClient(cc *grpc.ClientConn) StreamGreeterClient
type StreamGreeterServer ¶
type StreamGreeterServer interface {
Greet(StreamGreeter_GreetServer) error
}
type StreamGreeter_GreetClient ¶
type StreamGreeter_GreetClient interface { Send(*StreamReq) error Recv() (*StreamResp, error) grpc.ClientStream }
type StreamGreeter_GreetServer ¶
type StreamGreeter_GreetServer interface { Send(*StreamResp) error Recv() (*StreamReq, error) grpc.ServerStream }
type StreamReq ¶
type StreamReq struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*StreamReq) Descriptor ¶
func (*StreamReq) ProtoMessage ¶
func (*StreamReq) ProtoMessage()
type StreamResp ¶
type StreamResp struct {
Greet string `protobuf:"bytes,1,opt,name=greet" json:"greet,omitempty"`
}
func (*StreamResp) Descriptor ¶
func (*StreamResp) Descriptor() ([]byte, []int)
func (*StreamResp) GetGreet ¶
func (m *StreamResp) GetGreet() string
func (*StreamResp) ProtoMessage ¶
func (*StreamResp) ProtoMessage()
func (*StreamResp) Reset ¶
func (m *StreamResp) Reset()
func (*StreamResp) String ¶
func (m *StreamResp) String() string
Click to show internal directories.
Click to hide internal directories.