proto

package
v0.0.0-...-073d460 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGwxServer

func RegisterGwxServer(s *grpc.Server, srv GwxServer)

Types

type GwxClient

type GwxClient interface {
	// 发送数据执行动作函数
	GwxDo(ctx context.Context, in *GwxReq, opts ...grpc.CallOption) (*GwxRsp, error)
}

GwxClient is the client API for Gwx service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGwxClient

func NewGwxClient(cc *grpc.ClientConn) GwxClient

type GwxReq

type GwxReq struct {
	ReqData              string   `protobuf:"bytes,1,opt,name=reqData,proto3" json:"reqData,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

请求的数据

func (*GwxReq) Descriptor

func (*GwxReq) Descriptor() ([]byte, []int)

func (*GwxReq) GetReqData

func (m *GwxReq) GetReqData() string

func (*GwxReq) ProtoMessage

func (*GwxReq) ProtoMessage()

func (*GwxReq) Reset

func (m *GwxReq) Reset()

func (*GwxReq) String

func (m *GwxReq) String() string

func (*GwxReq) XXX_DiscardUnknown

func (m *GwxReq) XXX_DiscardUnknown()

func (*GwxReq) XXX_Marshal

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

func (*GwxReq) XXX_Merge

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

func (*GwxReq) XXX_Size

func (m *GwxReq) XXX_Size() int

func (*GwxReq) XXX_Unmarshal

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

type GwxRsp

type GwxRsp struct {
	RspData              string   `protobuf:"bytes,1,opt,name=rspData,proto3" json:"rspData,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

返回的数据

func (*GwxRsp) Descriptor

func (*GwxRsp) Descriptor() ([]byte, []int)

func (*GwxRsp) GetRspData

func (m *GwxRsp) GetRspData() string

func (*GwxRsp) ProtoMessage

func (*GwxRsp) ProtoMessage()

func (*GwxRsp) Reset

func (m *GwxRsp) Reset()

func (*GwxRsp) String

func (m *GwxRsp) String() string

func (*GwxRsp) XXX_DiscardUnknown

func (m *GwxRsp) XXX_DiscardUnknown()

func (*GwxRsp) XXX_Marshal

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

func (*GwxRsp) XXX_Merge

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

func (*GwxRsp) XXX_Size

func (m *GwxRsp) XXX_Size() int

func (*GwxRsp) XXX_Unmarshal

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

type GwxServer

type GwxServer interface {
	// 发送数据执行动作函数
	GwxDo(context.Context, *GwxReq) (*GwxRsp, error)
}

GwxServer is the server API for Gwx service.

Jump to

Keyboard shortcuts

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