Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
hello.proto
It has these top-level messages:
ReqSayWorld ReplySayWorld
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
Types ¶
type HelloClient ¶
type HelloClient interface {
SayWorld(ctx context.Context, in *ReqSayWorld, opts ...grpc.CallOption) (*ReplySayWorld, error)
}
func NewHelloClient ¶
func NewHelloClient(cc *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface {
SayWorld(context.Context, *ReqSayWorld) (*ReplySayWorld, error)
}
type ReplySayWorld ¶
type ReplySayWorld struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*ReplySayWorld) Descriptor ¶
func (*ReplySayWorld) Descriptor() ([]byte, []int)
func (*ReplySayWorld) GetMessage ¶
func (m *ReplySayWorld) GetMessage() string
func (*ReplySayWorld) ProtoMessage ¶
func (*ReplySayWorld) ProtoMessage()
func (*ReplySayWorld) Reset ¶
func (m *ReplySayWorld) Reset()
func (*ReplySayWorld) String ¶
func (m *ReplySayWorld) String() string
type ReqSayWorld ¶
type ReqSayWorld struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*ReqSayWorld) Descriptor ¶
func (*ReqSayWorld) Descriptor() ([]byte, []int)
func (*ReqSayWorld) GetName ¶
func (m *ReqSayWorld) GetName() string
func (*ReqSayWorld) ProtoMessage ¶
func (*ReqSayWorld) ProtoMessage()
func (*ReqSayWorld) Reset ¶
func (m *ReqSayWorld) Reset()
func (*ReqSayWorld) String ¶
func (m *ReqSayWorld) String() string
Click to show internal directories.
Click to hide internal directories.