Documentation ¶
Index ¶
- Variables
- type ErrID
- type HRaven
- 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 MRavenA
- type MRavenQ
- 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: "RavenQ", 6: "RavenA", 7: "LoginQ", 8: "LoginA", 9: "UpdateQ", 10: "UpdateA", } MsgID_value = map[string]int32{ "Unknown": 0, "JsonQ": 1, "JsonA": 2, "ProtoQ": 3, "ProtoA": 4, "RavenQ": 5, "RavenA": 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: "RavenUnmarshal", 4: "SubmitFailed", 5: "TokenNotMatch", } ErrID_value = map[string]int32{ "Success": 0, "JsonUnmarshal": 1, "ProtoUnmarshal": 2, "RavenUnmarshal": 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
View Source
var File_msgraven_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 HRaven ¶ added in v1.1.1
type HRaven struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token // contains filtered or unexported fields }
標頭Raven
func (*HRaven) Descriptor
deprecated
added in
v1.1.1
func (*HRaven) ProtoMessage ¶ added in v1.1.1
func (*HRaven) ProtoMessage()
func (*HRaven) ProtoReflect ¶ added in v1.1.1
func (x *HRaven) ProtoReflect() protoreflect.Message
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 MRavenA ¶ added in v1.1.1
type MRavenA struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 封包計數 // contains filtered or unexported fields }
回應Raven
func (*MRavenA) Descriptor
deprecated
added in
v1.1.1
func (*MRavenA) ProtoMessage ¶ added in v1.1.1
func (*MRavenA) ProtoMessage()
func (*MRavenA) ProtoReflect ¶ added in v1.1.1
func (x *MRavenA) ProtoReflect() protoreflect.Message
type MRavenQ ¶ added in v1.1.1
type MRavenQ struct { Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // 傳送時間 // contains filtered or unexported fields }
要求Raven
func (*MRavenQ) Descriptor
deprecated
added in
v1.1.1
func (*MRavenQ) ProtoMessage ¶ added in v1.1.1
func (*MRavenQ) ProtoMessage()
func (*MRavenQ) ProtoReflect ¶ added in v1.1.1
func (x *MRavenQ) ProtoReflect() protoreflect.Message
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_RavenQ MsgID = 5 // 要求Raven MsgID_RavenA MsgID = 6 // 回應Raven 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.