Documentation ¶
Overview ¶
Package protocol is a generated protocol buffer package.
It is generated from these files:
hello.proto
It has these top-level messages:
HelloReq HelloResp
Index ¶
- Variables
- func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
- func RegisterService(srv *grpc.Server, s Service)
- type HelloReq
- func (*HelloReq) Descriptor() ([]byte, []int)
- func (m *HelloReq) Marshal() (dAtA []byte, err error)
- func (m *HelloReq) MarshalTo(dAtA []byte) (int, error)
- func (*HelloReq) ProtoMessage()
- func (m *HelloReq) ProtoSize() (n int)
- func (m *HelloReq) Reset()
- func (m *HelloReq) String() string
- func (m *HelloReq) Unmarshal(dAtA []byte) error
- type HelloResp
- func (*HelloResp) Descriptor() ([]byte, []int)
- func (m *HelloResp) Marshal() (dAtA []byte, err error)
- func (m *HelloResp) MarshalTo(dAtA []byte) (int, error)
- func (*HelloResp) ProtoMessage()
- func (m *HelloResp) ProtoSize() (n int)
- func (m *HelloResp) Reset()
- func (m *HelloResp) String() string
- func (m *HelloResp) Unmarshal(dAtA []byte) error
- type HelloServiceClient
- type HelloServiceServer
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthHello = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHello = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
func RegisterService ¶
Types ¶
type HelloReq ¶
type HelloReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*HelloReq) Descriptor ¶
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
type HelloResp ¶
type HelloResp struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
}
func (*HelloResp) Descriptor ¶
func (*HelloResp) ProtoMessage ¶
func (*HelloResp) ProtoMessage()
type HelloServiceClient ¶
type HelloServiceClient interface {
Hello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*HelloResp, error)
}
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc *grpc.ClientConn) HelloServiceClient
type HelloServiceServer ¶
Click to show internal directories.
Click to hide internal directories.