Documentation ¶
Overview ¶
Package hi is a generated protocol buffer package.
It is generated from these files:
hi.proto
It has these top-level messages:
HiRequest HiResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHiServer ¶
RegisterHiServer register HiServer with etcd info
Types ¶
type HiRequest ¶
type HiRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty" xml:"name,omitempty"`
}
HelloRequest 请求结构
func (*HiRequest) Descriptor ¶
func (*HiRequest) ProtoMessage ¶
func (*HiRequest) ProtoMessage()
type HiResponse ¶
type HiResponse struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty" xml:"message,omitempty"`
}
HelloResponse 响应结构
func (*HiResponse) Descriptor ¶
func (*HiResponse) Descriptor() ([]byte, []int)
func (*HiResponse) GetMessage ¶
func (m *HiResponse) GetMessage() string
func (*HiResponse) ProtoMessage ¶
func (*HiResponse) ProtoMessage()
func (*HiResponse) Reset ¶
func (m *HiResponse) Reset()
func (*HiResponse) String ¶
func (m *HiResponse) String() string
Click to show internal directories.
Click to hide internal directories.