InitConnect

package
v0.0.0-...-1a60310 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package InitConnect is a generated protocol buffer package.

It is generated from these files:

InitConnect.proto

It has these top-level messages:

C2S
S2C
Request
Response

Index

Constants

View Source
const Default_Response_RetType int32 = -400

Variables

This section is empty.

Functions

This section is empty.

Types

type C2S

type C2S struct {
	ClientVer  *int32  `protobuf:"varint,1,req,name=clientVer" json:"clientVer,omitempty"`
	ClientID   *string `protobuf:"bytes,2,req,name=clientID" json:"clientID,omitempty"`
	RecvNotify *bool   `protobuf:"varint,3,opt,name=recvNotify" json:"recvNotify,omitempty"`
	// 如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
	// 如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
	PacketEncAlgo    *int32 `protobuf:"varint,4,opt,name=packetEncAlgo" json:"packetEncAlgo,omitempty"`
	PushProtoFmt     *int32 `protobuf:"varint,5,opt,name=pushProtoFmt" json:"pushProtoFmt,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*C2S) Descriptor

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

func (*C2S) GetClientID

func (m *C2S) GetClientID() string

func (*C2S) GetClientVer

func (m *C2S) GetClientVer() int32

func (*C2S) GetPacketEncAlgo

func (m *C2S) GetPacketEncAlgo() int32

func (*C2S) GetPushProtoFmt

func (m *C2S) GetPushProtoFmt() int32

func (*C2S) GetRecvNotify

func (m *C2S) GetRecvNotify() bool

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) Reset

func (m *C2S) Reset()

func (*C2S) String

func (m *C2S) String() string

type Request

type Request struct {
	C2S              *C2S   `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetC2S

func (m *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	RetType          *int32  `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"`
	RetMsg           *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"`
	ErrCode          *int32  `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"`
	S2C              *S2C    `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetErrCode

func (m *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (m *Response) GetRetMsg() string

func (*Response) GetRetType

func (m *Response) GetRetType() int32

func (*Response) GetS2C

func (m *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type S2C

type S2C struct {
	ServerVer         *int32  `protobuf:"varint,1,req,name=serverVer" json:"serverVer,omitempty"`
	LoginUserID       *uint64 `protobuf:"varint,2,req,name=loginUserID" json:"loginUserID,omitempty"`
	ConnID            *uint64 `protobuf:"varint,3,req,name=connID" json:"connID,omitempty"`
	ConnAESKey        *string `protobuf:"bytes,4,req,name=connAESKey" json:"connAESKey,omitempty"`
	KeepAliveInterval *int32  `protobuf:"varint,5,req,name=keepAliveInterval" json:"keepAliveInterval,omitempty"`
	AesCBCiv          *string `protobuf:"bytes,6,opt,name=aesCBCiv" json:"aesCBCiv,omitempty"`
	XXX_unrecognized  []byte  `json:"-"`
}

func (*S2C) Descriptor

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

func (*S2C) GetAesCBCiv

func (m *S2C) GetAesCBCiv() string

func (*S2C) GetConnAESKey

func (m *S2C) GetConnAESKey() string

func (*S2C) GetConnID

func (m *S2C) GetConnID() uint64

func (*S2C) GetKeepAliveInterval

func (m *S2C) GetKeepAliveInterval() int32

func (*S2C) GetLoginUserID

func (m *S2C) GetLoginUserID() uint64

func (*S2C) GetServerVer

func (m *S2C) GetServerVer() int32

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) Reset

func (m *S2C) Reset()

func (*S2C) String

func (m *S2C) String() string

Jump to

Keyboard shortcuts

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