Documentation ¶
Index ¶
- func RegisterHxDemoHandler(s server.Server, hdlr HxDemoHandler, opts ...server.HandlerOption) error
- type HReq
- func (*HReq) Descriptor() ([]byte, []int)
- func (m *HReq) GetName() string
- func (*HReq) ProtoMessage()
- func (m *HReq) Reset()
- func (m *HReq) String() string
- func (m *HReq) XXX_DiscardUnknown()
- func (m *HReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HReq) XXX_Merge(src proto.Message)
- func (m *HReq) XXX_Size() int
- func (m *HReq) XXX_Unmarshal(b []byte) error
- type HResp
- func (*HResp) Descriptor() ([]byte, []int)
- func (m *HResp) GetCode() string
- func (m *HResp) GetMsg() string
- func (*HResp) ProtoMessage()
- func (m *HResp) Reset()
- func (m *HResp) String() string
- func (m *HResp) XXX_DiscardUnknown()
- func (m *HResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HResp) XXX_Merge(src proto.Message)
- func (m *HResp) XXX_Size() int
- func (m *HResp) XXX_Unmarshal(b []byte) error
- type HxDemoHandler
- type HxDemoService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHxDemoHandler ¶
func RegisterHxDemoHandler(s server.Server, hdlr HxDemoHandler, opts ...server.HandlerOption) error
Types ¶
type HReq ¶
type HReq struct { // 名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
传递的消息
func (*HReq) Descriptor ¶
func (*HReq) ProtoMessage ¶
func (*HReq) ProtoMessage()
func (*HReq) XXX_DiscardUnknown ¶
func (m *HReq) XXX_DiscardUnknown()
func (*HReq) XXX_Unmarshal ¶
type HResp ¶
type HResp struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HResp) Descriptor ¶
func (*HResp) ProtoMessage ¶
func (*HResp) ProtoMessage()
func (*HResp) XXX_DiscardUnknown ¶
func (m *HResp) XXX_DiscardUnknown()
func (*HResp) XXX_Marshal ¶
func (*HResp) XXX_Unmarshal ¶
type HxDemoHandler ¶
type HxDemoService ¶
type HxDemoService interface { // 测试服务hello Hello(ctx context.Context, in *HReq, opts ...client.CallOption) (*HResp, error) }
func NewHxDemoService ¶
func NewHxDemoService(name string, c client.Client) HxDemoService
Click to show internal directories.
Click to hide internal directories.