Documentation ¶
Index ¶
- Variables
- type ErrID
- type HProtoRaven
- type MJsonA
- type MJsonQ
- type MLoginA
- type MLoginQ
- type MProtoA
- func (*MProtoA) Descriptor() ([]byte, []int)deprecated
- func (x *MProtoA) GetCount() int64
- func (x *MProtoA) GetErrID() ErrID
- func (x *MProtoA) GetFrom() *MProtoQ
- func (*MProtoA) ProtoMessage()
- func (x *MProtoA) ProtoReflect() protoreflect.Message
- func (x *MProtoA) Reset()
- func (x *MProtoA) String() string
- type MProtoQ
- type MProtoRavenA
- type MProtoRavenQ
- type MUpdateA
- type MUpdateQ
- type MsgID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MsgID_name = map[int32]string{ 0: "Unknown", 1: "JsonQ", 2: "JsonA", 3: "ProtoQ", 4: "ProtoA", 5: "ProtoRavenQ", 6: "ProtoRavenA", 7: "LoginQ", 8: "LoginA", 9: "UpdateQ", 10: "UpdateA", } MsgID_value = map[string]int32{ "Unknown": 0, "JsonQ": 1, "JsonA": 2, "ProtoQ": 3, "ProtoA": 4, "ProtoRavenQ": 5, "ProtoRavenA": 6, "LoginQ": 7, "LoginA": 8, "UpdateQ": 9, "UpdateA": 10, } )
Enum value maps for MsgID.
View Source
var ( ErrID_name = map[int32]string{ 0: "Success", 1: "JsonUnmarshal", 2: "ProtoUnmarshal", 3: "ProtoRavenUnmarshal", 4: "SubmitFailed", 5: "TokenNotMatch", } ErrID_value = map[string]int32{ "Success": 0, "JsonUnmarshal": 1, "ProtoUnmarshal": 2, "ProtoRavenUnmarshal": 3, "SubmitFailed": 4, "TokenNotMatch": 5, } )
Enum value maps for ErrID.
View Source
var File_msgid_proto protoreflect.FileDescriptor
View Source
var File_msgproto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ErrID ¶
type ErrID int32
錯誤編號
func (ErrID) Descriptor ¶
func (ErrID) Descriptor() protoreflect.EnumDescriptor
func (ErrID) EnumDescriptor
deprecated
func (ErrID) Number ¶
func (x ErrID) Number() protoreflect.EnumNumber
func (ErrID) Type ¶
func (ErrID) Type() protoreflect.EnumType
type HProtoRaven ¶ added in v1.1.0
type HProtoRaven struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token // contains filtered or unexported fields }
標頭Proto-Raven
func (*HProtoRaven) Descriptor
deprecated
added in
v1.1.0
func (*HProtoRaven) Descriptor() ([]byte, []int)
Deprecated: Use HProtoRaven.ProtoReflect.Descriptor instead.
func (*HProtoRaven) GetToken ¶ added in v1.1.0
func (x *HProtoRaven) GetToken() string
func (*HProtoRaven) ProtoMessage ¶ added in v1.1.0
func (*HProtoRaven) ProtoMessage()
func (*HProtoRaven) ProtoReflect ¶ added in v1.1.0
func (x *HProtoRaven) ProtoReflect() protoreflect.Message
func (*HProtoRaven) Reset ¶ added in v1.1.0
func (x *HProtoRaven) Reset()
func (*HProtoRaven) String ¶ added in v1.1.0
func (x *HProtoRaven) String() string
type MProtoA ¶
type MProtoA struct { From *MProtoQ `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // 來源訊息 ErrID ErrID `protobuf:"varint,2,opt,name=errID,proto3,enum=ErrID" json:"errID,omitempty"` // 錯誤編號 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 封包計數 // contains filtered or unexported fields }
回應Proto
func (*MProtoA) Descriptor
deprecated
func (*MProtoA) ProtoMessage ¶
func (*MProtoA) ProtoMessage()
func (*MProtoA) ProtoReflect ¶
func (x *MProtoA) ProtoReflect() protoreflect.Message
type MProtoQ ¶
type MProtoQ struct { Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // 傳送時間 // contains filtered or unexported fields }
要求Proto
func (*MProtoQ) Descriptor
deprecated
func (*MProtoQ) ProtoMessage ¶
func (*MProtoQ) ProtoMessage()
func (*MProtoQ) ProtoReflect ¶
func (x *MProtoQ) ProtoReflect() protoreflect.Message
type MProtoRavenA ¶ added in v1.1.0
type MProtoRavenA struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 封包計數 // contains filtered or unexported fields }
回應Proto-Raven
func (*MProtoRavenA) Descriptor
deprecated
added in
v1.1.0
func (*MProtoRavenA) Descriptor() ([]byte, []int)
Deprecated: Use MProtoRavenA.ProtoReflect.Descriptor instead.
func (*MProtoRavenA) GetCount ¶ added in v1.1.0
func (x *MProtoRavenA) GetCount() int64
func (*MProtoRavenA) ProtoMessage ¶ added in v1.1.0
func (*MProtoRavenA) ProtoMessage()
func (*MProtoRavenA) ProtoReflect ¶ added in v1.1.0
func (x *MProtoRavenA) ProtoReflect() protoreflect.Message
func (*MProtoRavenA) Reset ¶ added in v1.1.0
func (x *MProtoRavenA) Reset()
func (*MProtoRavenA) String ¶ added in v1.1.0
func (x *MProtoRavenA) String() string
type MProtoRavenQ ¶ added in v1.1.0
type MProtoRavenQ struct { Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // 傳送時間 // contains filtered or unexported fields }
要求Proto-Raven
func (*MProtoRavenQ) Descriptor
deprecated
added in
v1.1.0
func (*MProtoRavenQ) Descriptor() ([]byte, []int)
Deprecated: Use MProtoRavenQ.ProtoReflect.Descriptor instead.
func (*MProtoRavenQ) GetTime ¶ added in v1.1.0
func (x *MProtoRavenQ) GetTime() int64
func (*MProtoRavenQ) ProtoMessage ¶ added in v1.1.0
func (*MProtoRavenQ) ProtoMessage()
func (*MProtoRavenQ) ProtoReflect ¶ added in v1.1.0
func (x *MProtoRavenQ) ProtoReflect() protoreflect.Message
func (*MProtoRavenQ) Reset ¶ added in v1.1.0
func (x *MProtoRavenQ) Reset()
func (*MProtoRavenQ) String ¶ added in v1.1.0
func (x *MProtoRavenQ) String() string
type MsgID ¶
type MsgID int32
訊息編號
const ( MsgID_Unknown MsgID = 0 // 不明/錯誤訊息編號, 此編號不可使用 MsgID_JsonQ MsgID = 1 // 要求Json MsgID_JsonA MsgID = 2 // 回應Json MsgID_ProtoQ MsgID = 3 // 要求Proto MsgID_ProtoA MsgID = 4 // 回應Proto MsgID_ProtoRavenQ MsgID = 5 // 要求ProtoRaven MsgID_ProtoRavenA MsgID = 6 // 回應ProtoRaven MsgID_LoginQ MsgID = 7 // 要求登入(使用Json處理器) MsgID_LoginA MsgID = 8 // 回應登入(使用Json處理器) MsgID_UpdateQ MsgID = 9 // 要求更新(使用Json處理器) MsgID_UpdateA MsgID = 10 // 回應更新(使用Json處理器) )
func (MsgID) Descriptor ¶
func (MsgID) Descriptor() protoreflect.EnumDescriptor
func (MsgID) EnumDescriptor
deprecated
func (MsgID) Number ¶
func (x MsgID) Number() protoreflect.EnumNumber
func (MsgID) Type ¶
func (MsgID) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.