proto

package
v0.0.0-...-afdf500 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetClientID

func (x *Packet) GetClientID() string

func (*Packet) GetPacketType

func (x *Packet) GetPacketType() PacketType

func (*Packet) GetSerial

func (x *Packet) GetSerial() uint64

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) ProtoReflect

func (x *Packet) ProtoReflect() protoreflect.Message

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) String

func (x *Packet) String() string

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

Jump to

Keyboard shortcuts

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