Documentation ¶
Index ¶
- Variables
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)deprecated
- func (x *Packet) GetClientID() string
- func (x *Packet) GetPacketType() PacketType
- func (x *Packet) GetSerial() uint64
- func (*Packet) ProtoMessage()
- func (x *Packet) ProtoReflect() protoreflect.Message
- func (x *Packet) Reset()
- func (x *Packet) String() string
- type PacketType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PacketType_name = map[int32]string{ 0: "REQPACKET", 1: "ACKPACKET", 2: "RESETPACKET", } PacketType_value = map[string]int32{ "REQPACKET": 0, "ACKPACKET": 1, "RESETPACKET": 2, } )
Enum value maps for PacketType.
View Source
var File_packet_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { PacketType PacketType `protobuf:"varint,1,opt,name=packet_type,json=packetType,proto3,enum=packet.PacketType" json:"packet_type,omitempty"` Serial uint64 `protobuf:"varint,2,opt,name=serial,proto3" json:"serial,omitempty"` ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` // contains filtered or unexported fields }
func (*Packet) Descriptor
deprecated
func (*Packet) GetClientID ¶
func (*Packet) GetPacketType ¶
func (x *Packet) GetPacketType() PacketType
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
type PacketType ¶
type PacketType int32
const ( PacketType_REQPACKET PacketType = 0 PacketType_ACKPACKET PacketType = 1 PacketType_RESETPACKET PacketType = 2 )
func (PacketType) Descriptor ¶
func (PacketType) Descriptor() protoreflect.EnumDescriptor
func (PacketType) Enum ¶
func (x PacketType) Enum() *PacketType
func (PacketType) EnumDescriptor
deprecated
func (PacketType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PacketType.Descriptor instead.
func (PacketType) Number ¶
func (x PacketType) Number() protoreflect.EnumNumber
func (PacketType) String ¶
func (x PacketType) String() string
func (PacketType) Type ¶
func (PacketType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.