hxdemo

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*HReq) GetName

func (m *HReq) GetName() string

func (*HReq) ProtoMessage

func (*HReq) ProtoMessage()

func (*HReq) Reset

func (m *HReq) Reset()

func (*HReq) String

func (m *HReq) String() string

func (*HReq) XXX_DiscardUnknown

func (m *HReq) XXX_DiscardUnknown()

func (*HReq) XXX_Marshal

func (m *HReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HReq) XXX_Merge

func (m *HReq) XXX_Merge(src proto.Message)

func (*HReq) XXX_Size

func (m *HReq) XXX_Size() int

func (*HReq) XXX_Unmarshal

func (m *HReq) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*HResp) GetCode

func (m *HResp) GetCode() string

func (*HResp) GetMsg

func (m *HResp) GetMsg() string

func (*HResp) ProtoMessage

func (*HResp) ProtoMessage()

func (*HResp) Reset

func (m *HResp) Reset()

func (*HResp) String

func (m *HResp) String() string

func (*HResp) XXX_DiscardUnknown

func (m *HResp) XXX_DiscardUnknown()

func (*HResp) XXX_Marshal

func (m *HResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HResp) XXX_Merge

func (m *HResp) XXX_Merge(src proto.Message)

func (*HResp) XXX_Size

func (m *HResp) XXX_Size() int

func (*HResp) XXX_Unmarshal

func (m *HResp) XXX_Unmarshal(b []byte) error

type HxDemoHandler

type HxDemoHandler interface {
	// 测试服务hello
	Hello(context.Context, *HReq, *HResp) error
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL