Documentation ¶
Overview ¶
Package app_homepb is a generated protocol buffer package.
It is generated from these files:
home.proto
It has these top-level messages:
HelloRequest HelloReply HelloStreamReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHomeServer ¶
func RegisterHomeServer(s *grpc.Server, srv HomeServer)
Types ¶
type HelloReply ¶
type HelloReply struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}
func (*HelloReply) Descriptor ¶
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) GetData ¶
func (m *HelloReply) GetData() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶
func (m *HelloReply) Reset()
func (*HelloReply) String ¶
func (m *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
type HelloStreamReply ¶ added in v1.2.7
type HelloStreamReply struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}
func (*HelloStreamReply) Descriptor ¶ added in v1.2.7
func (*HelloStreamReply) Descriptor() ([]byte, []int)
func (*HelloStreamReply) GetData ¶ added in v1.2.7
func (m *HelloStreamReply) GetData() string
func (*HelloStreamReply) ProtoMessage ¶ added in v1.2.7
func (*HelloStreamReply) ProtoMessage()
func (*HelloStreamReply) Reset ¶ added in v1.2.7
func (m *HelloStreamReply) Reset()
func (*HelloStreamReply) String ¶ added in v1.2.7
func (m *HelloStreamReply) String() string
type HomeClient ¶
type HomeClient interface { Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) HelloStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Home_HelloStreamClient, error) }
func NewHomeClient ¶
func NewHomeClient(cc *grpc.ClientConn) HomeClient
type HomeServer ¶
type HomeServer interface { Hello(context.Context, *HelloRequest) (*HelloReply, error) HelloStream(*HelloRequest, Home_HelloStreamServer) error }
type Home_HelloStreamClient ¶ added in v1.2.7
type Home_HelloStreamClient interface { Recv() (*HelloStreamReply, error) grpc.ClientStream }
type Home_HelloStreamServer ¶ added in v1.2.7
type Home_HelloStreamServer interface { Send(*HelloStreamReply) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.