Documentation
¶
Index ¶
- Variables
- type PacketEncAlgo
- func (PacketEncAlgo) Descriptor() protoreflect.EnumDescriptor
- func (x PacketEncAlgo) Enum() *PacketEncAlgo
- func (PacketEncAlgo) EnumDescriptor() ([]byte, []int)deprecated
- func (x PacketEncAlgo) Number() protoreflect.EnumNumber
- func (x PacketEncAlgo) String() string
- func (PacketEncAlgo) Type() protoreflect.EnumType
- func (x *PacketEncAlgo) UnmarshalJSON(b []byte) errordeprecated
- type PacketID
- type ProgramStatus
- func (*ProgramStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProgramStatus) GetStrExtDesc() string
- func (x *ProgramStatus) GetType() ProgramStatusType
- func (*ProgramStatus) ProtoMessage()
- func (x *ProgramStatus) ProtoReflect() protoreflect.Message
- func (x *ProgramStatus) Reset()
- func (x *ProgramStatus) String() string
- type ProgramStatusType
- func (ProgramStatusType) Descriptor() protoreflect.EnumDescriptor
- func (x ProgramStatusType) Enum() *ProgramStatusType
- func (ProgramStatusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProgramStatusType) Number() protoreflect.EnumNumber
- func (x ProgramStatusType) String() string
- func (ProgramStatusType) Type() protoreflect.EnumType
- func (x *ProgramStatusType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoFmt
- func (ProtoFmt) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoFmt) Enum() *ProtoFmt
- func (ProtoFmt) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoFmt) Number() protoreflect.EnumNumber
- func (x ProtoFmt) String() string
- func (ProtoFmt) Type() protoreflect.EnumType
- func (x *ProtoFmt) UnmarshalJSON(b []byte) errordeprecated
- type RetType
- func (RetType) Descriptor() protoreflect.EnumDescriptor
- func (x RetType) Enum() *RetType
- func (RetType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RetType) Number() protoreflect.EnumNumber
- func (x RetType) String() string
- func (RetType) Type() protoreflect.EnumType
- func (x *RetType) UnmarshalJSON(b []byte) errordeprecated
- type UserAttribution
- func (UserAttribution) Descriptor() protoreflect.EnumDescriptor
- func (x UserAttribution) Enum() *UserAttribution
- func (UserAttribution) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserAttribution) Number() protoreflect.EnumNumber
- func (x UserAttribution) String() string
- func (UserAttribution) Type() protoreflect.EnumType
- func (x *UserAttribution) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RetType_name = map[int32]string{ 0: "RetType_Succeed", -1: "RetType_Failed", -100: "RetType_TimeOut", -200: "RetType_DisConnect", -400: "RetType_Unknown", -500: "RetType_Invalid", } RetType_value = map[string]int32{ "RetType_Succeed": 0, "RetType_Failed": -1, "RetType_TimeOut": -100, "RetType_DisConnect": -200, "RetType_Unknown": -400, "RetType_Invalid": -500, } )
Enum value maps for RetType.
View Source
var ( PacketEncAlgo_name = map[int32]string{ 0: "PacketEncAlgo_FTAES_ECB", -1: "PacketEncAlgo_None", 1: "PacketEncAlgo_AES_ECB", 2: "PacketEncAlgo_AES_CBC", } PacketEncAlgo_value = map[string]int32{ "PacketEncAlgo_FTAES_ECB": 0, "PacketEncAlgo_None": -1, "PacketEncAlgo_AES_ECB": 1, "PacketEncAlgo_AES_CBC": 2, } )
Enum value maps for PacketEncAlgo.
View Source
var ( ProtoFmt_name = map[int32]string{ 0: "ProtoFmt_Protobuf", 1: "ProtoFmt_Json", } ProtoFmt_value = map[string]int32{ "ProtoFmt_Protobuf": 0, "ProtoFmt_Json": 1, } )
Enum value maps for ProtoFmt.
View Source
var ( UserAttribution_name = map[int32]string{ 0: "UserAttribution_Unknown", 1: "UserAttribution_NN", 2: "UserAttribution_MM", 3: "UserAttribution_SG", 4: "UserAttribution_AU", 5: "UserAttribution_JP", 6: "UserAttribution_HK", } UserAttribution_value = map[string]int32{ "UserAttribution_Unknown": 0, "UserAttribution_NN": 1, "UserAttribution_MM": 2, "UserAttribution_SG": 3, "UserAttribution_AU": 4, "UserAttribution_JP": 5, "UserAttribution_HK": 6, } )
Enum value maps for UserAttribution.
View Source
var ( ProgramStatusType_name = map[int32]string{ 0: "ProgramStatusType_None", 1: "ProgramStatusType_Loaded", 2: "ProgramStatusType_Loging", 3: "ProgramStatusType_NeedPicVerifyCode", 4: "ProgramStatusType_NeedPhoneVerifyCode", 5: "ProgramStatusType_LoginFailed", 6: "ProgramStatusType_ForceUpdate", 7: "ProgramStatusType_NessaryDataPreparing", 8: "ProgramStatusType_NessaryDataMissing", 9: "ProgramStatusType_UnAgreeDisclaimer", 10: "ProgramStatusType_Ready", 11: "ProgramStatusType_ForceLogout", 12: "ProgramStatusType_DisclaimerPullFailed", } ProgramStatusType_value = map[string]int32{ "ProgramStatusType_None": 0, "ProgramStatusType_Loaded": 1, "ProgramStatusType_Loging": 2, "ProgramStatusType_NeedPicVerifyCode": 3, "ProgramStatusType_NeedPhoneVerifyCode": 4, "ProgramStatusType_LoginFailed": 5, "ProgramStatusType_ForceUpdate": 6, "ProgramStatusType_NessaryDataPreparing": 7, "ProgramStatusType_NessaryDataMissing": 8, "ProgramStatusType_UnAgreeDisclaimer": 9, "ProgramStatusType_Ready": 10, "ProgramStatusType_ForceLogout": 11, "ProgramStatusType_DisclaimerPullFailed": 12, } )
Enum value maps for ProgramStatusType.
View Source
var File_Common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PacketEncAlgo ¶
type PacketEncAlgo int32
包加密算法
const ( PacketEncAlgo_PacketEncAlgo_FTAES_ECB PacketEncAlgo = 0 //富途修改过的AES的ECB加密模式 PacketEncAlgo_PacketEncAlgo_None PacketEncAlgo = -1 //不加密 PacketEncAlgo_PacketEncAlgo_AES_ECB PacketEncAlgo = 1 //标准的AES的ECB加密模式 PacketEncAlgo_PacketEncAlgo_AES_CBC PacketEncAlgo = 2 //标准的AES的CBC加密模式 )
func (PacketEncAlgo) Descriptor ¶
func (PacketEncAlgo) Descriptor() protoreflect.EnumDescriptor
func (PacketEncAlgo) Enum ¶
func (x PacketEncAlgo) Enum() *PacketEncAlgo
func (PacketEncAlgo) EnumDescriptor
deprecated
func (PacketEncAlgo) EnumDescriptor() ([]byte, []int)
Deprecated: Use PacketEncAlgo.Descriptor instead.
func (PacketEncAlgo) Number ¶
func (x PacketEncAlgo) Number() protoreflect.EnumNumber
func (PacketEncAlgo) String ¶
func (x PacketEncAlgo) String() string
func (PacketEncAlgo) Type ¶
func (PacketEncAlgo) Type() protoreflect.EnumType
func (*PacketEncAlgo) UnmarshalJSON
deprecated
func (x *PacketEncAlgo) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type PacketID ¶
type PacketID struct { ConnID *uint64 `protobuf:"varint,1,req,name=connID" json:"connID,omitempty"` //当前TCP连接的连接ID,一条连接的唯一标识,InitConnect协议会返回 SerialNo *uint32 `protobuf:"varint,2,req,name=serialNo" json:"serialNo,omitempty"` //自增序列号 // contains filtered or unexported fields }
包的唯一标识,用于回放攻击的识别和保护
func (*PacketID) Descriptor
deprecated
func (*PacketID) GetSerialNo ¶
func (*PacketID) ProtoMessage ¶
func (*PacketID) ProtoMessage()
func (*PacketID) ProtoReflect ¶
func (x *PacketID) ProtoReflect() protoreflect.Message
type ProgramStatus ¶
type ProgramStatus struct { Type *ProgramStatusType `protobuf:"varint,1,req,name=type,enum=Common.ProgramStatusType" json:"type,omitempty"` //当前状态 StrExtDesc *string `protobuf:"bytes,2,opt,name=strExtDesc" json:"strExtDesc,omitempty"` // 额外描述 // contains filtered or unexported fields }
func (*ProgramStatus) Descriptor
deprecated
func (*ProgramStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProgramStatus.ProtoReflect.Descriptor instead.
func (*ProgramStatus) GetStrExtDesc ¶
func (x *ProgramStatus) GetStrExtDesc() string
func (*ProgramStatus) GetType ¶
func (x *ProgramStatus) GetType() ProgramStatusType
func (*ProgramStatus) ProtoMessage ¶
func (*ProgramStatus) ProtoMessage()
func (*ProgramStatus) ProtoReflect ¶
func (x *ProgramStatus) ProtoReflect() protoreflect.Message
func (*ProgramStatus) Reset ¶
func (x *ProgramStatus) Reset()
func (*ProgramStatus) String ¶
func (x *ProgramStatus) String() string
type ProgramStatusType ¶
type ProgramStatusType int32
const ( ProgramStatusType_ProgramStatusType_None ProgramStatusType = 0 ProgramStatusType_ProgramStatusType_Loaded ProgramStatusType = 1 //已完成类似加载配置,启动服务器等操作,服务器启动之前的状态无需返回 ProgramStatusType_ProgramStatusType_Loging ProgramStatusType = 2 //登录中 ProgramStatusType_ProgramStatusType_NeedPicVerifyCode ProgramStatusType = 3 //需要图形验证码 ProgramStatusType_ProgramStatusType_NeedPhoneVerifyCode ProgramStatusType = 4 //需要手机验证码 ProgramStatusType_ProgramStatusType_LoginFailed ProgramStatusType = 5 //登录失败,详细原因在描述返回 ProgramStatusType_ProgramStatusType_ForceUpdate ProgramStatusType = 6 //客户端版本过低 ProgramStatusType_ProgramStatusType_NessaryDataPreparing ProgramStatusType = 7 //正在拉取类似免责声明等一些必要信息 ProgramStatusType_ProgramStatusType_NessaryDataMissing ProgramStatusType = 8 //缺少必要信息 ProgramStatusType_ProgramStatusType_UnAgreeDisclaimer ProgramStatusType = 9 //未同意免责声明 ProgramStatusType_ProgramStatusType_Ready ProgramStatusType = 10 //可以接收业务协议收发,正常可用状态 //OpenD登录后被强制退出登录,会导致连接全部断开,需要重连后才能得到以下该状态(并且需要在ui模式下) ProgramStatusType_ProgramStatusType_ForceLogout ProgramStatusType = 11 //被强制退出登录,例如修改了登录密码,中途打开设备锁等,详细原因在描述返回 ProgramStatusType_ProgramStatusType_DisclaimerPullFailed ProgramStatusType = 12 //拉取免责声明标志失败 )
func (ProgramStatusType) Descriptor ¶
func (ProgramStatusType) Descriptor() protoreflect.EnumDescriptor
func (ProgramStatusType) Enum ¶
func (x ProgramStatusType) Enum() *ProgramStatusType
func (ProgramStatusType) EnumDescriptor
deprecated
func (ProgramStatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProgramStatusType.Descriptor instead.
func (ProgramStatusType) Number ¶
func (x ProgramStatusType) Number() protoreflect.EnumNumber
func (ProgramStatusType) String ¶
func (x ProgramStatusType) String() string
func (ProgramStatusType) Type ¶
func (ProgramStatusType) Type() protoreflect.EnumType
func (*ProgramStatusType) UnmarshalJSON
deprecated
func (x *ProgramStatusType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoFmt ¶
type ProtoFmt int32
协议格式,请求协议在请求头中指定,推送协议在Init时指定
func (ProtoFmt) Descriptor ¶
func (ProtoFmt) Descriptor() protoreflect.EnumDescriptor
func (ProtoFmt) EnumDescriptor
deprecated
func (ProtoFmt) Number ¶
func (x ProtoFmt) Number() protoreflect.EnumNumber
func (ProtoFmt) Type ¶
func (ProtoFmt) Type() protoreflect.EnumType
func (*ProtoFmt) UnmarshalJSON
deprecated
type RetType ¶
type RetType int32
返回结果
func (RetType) Descriptor ¶
func (RetType) Descriptor() protoreflect.EnumDescriptor
func (RetType) EnumDescriptor
deprecated
func (RetType) Number ¶
func (x RetType) Number() protoreflect.EnumNumber
func (RetType) Type ¶
func (RetType) Type() protoreflect.EnumType
func (*RetType) UnmarshalJSON
deprecated
type UserAttribution ¶
type UserAttribution int32
用户注册归属地
const ( UserAttribution_UserAttribution_Unknown UserAttribution = 0 // UserAttribution_UserAttribution_NN UserAttribution = 1 //大陆 UserAttribution_UserAttribution_MM UserAttribution = 2 //MooMoo UserAttribution_UserAttribution_SG UserAttribution = 3 //新加坡 UserAttribution_UserAttribution_AU UserAttribution = 4 //澳洲 UserAttribution_UserAttribution_JP UserAttribution = 5 //日本 UserAttribution_UserAttribution_HK UserAttribution = 6 //香港 )
func (UserAttribution) Descriptor ¶
func (UserAttribution) Descriptor() protoreflect.EnumDescriptor
func (UserAttribution) Enum ¶
func (x UserAttribution) Enum() *UserAttribution
func (UserAttribution) EnumDescriptor
deprecated
func (UserAttribution) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserAttribution.Descriptor instead.
func (UserAttribution) Number ¶
func (x UserAttribution) Number() protoreflect.EnumNumber
func (UserAttribution) String ¶
func (x UserAttribution) String() string
func (UserAttribution) Type ¶
func (UserAttribution) Type() protoreflect.EnumType
func (*UserAttribution) UnmarshalJSON
deprecated
func (x *UserAttribution) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.