packet

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_packet_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Meta

type Meta struct {
	Size        uint64       `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Addr        string       `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Port        uint32       `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	Flags       *PacketFlags `protobuf:"bytes,4,opt,name=flags,proto3" json:"flags,omitempty"`
	SenderStake uint64       `protobuf:"varint,5,opt,name=sender_stake,json=senderStake,proto3" json:"sender_stake,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

func (*Meta) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetAddr

func (x *Meta) GetAddr() string

func (*Meta) GetFlags

func (x *Meta) GetFlags() *PacketFlags

func (*Meta) GetPort

func (x *Meta) GetPort() uint32

func (*Meta) GetSenderStake

func (x *Meta) GetSenderStake() uint64

func (*Meta) GetSize

func (x *Meta) GetSize() uint64

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type Packet

type Packet struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Meta *Meta  `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet) Descriptor deprecated

func (*Packet) Descriptor() ([]byte, []int)

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetData

func (x *Packet) GetData() []byte

func (*Packet) GetMeta

func (x *Packet) GetMeta() *Meta

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 PacketBatch

type PacketBatch struct {
	Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"`
	// contains filtered or unexported fields
}

func (*PacketBatch) Descriptor deprecated

func (*PacketBatch) Descriptor() ([]byte, []int)

Deprecated: Use PacketBatch.ProtoReflect.Descriptor instead.

func (*PacketBatch) GetPackets

func (x *PacketBatch) GetPackets() []*Packet

func (*PacketBatch) ProtoMessage

func (*PacketBatch) ProtoMessage()

func (*PacketBatch) ProtoReflect

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

func (*PacketBatch) Reset

func (x *PacketBatch) Reset()

func (*PacketBatch) String

func (x *PacketBatch) String() string

type PacketFlags

type PacketFlags struct {
	Discard        bool `protobuf:"varint,1,opt,name=discard,proto3" json:"discard,omitempty"`
	Forwarded      bool `protobuf:"varint,2,opt,name=forwarded,proto3" json:"forwarded,omitempty"`
	Repair         bool `protobuf:"varint,3,opt,name=repair,proto3" json:"repair,omitempty"`
	SimpleVoteTx   bool `protobuf:"varint,4,opt,name=simple_vote_tx,json=simpleVoteTx,proto3" json:"simple_vote_tx,omitempty"`
	TracerPacket   bool `protobuf:"varint,5,opt,name=tracer_packet,json=tracerPacket,proto3" json:"tracer_packet,omitempty"`
	FromStakedNode bool `protobuf:"varint,6,opt,name=from_staked_node,json=fromStakedNode,proto3" json:"from_staked_node,omitempty"`
	// contains filtered or unexported fields
}

func (*PacketFlags) Descriptor deprecated

func (*PacketFlags) Descriptor() ([]byte, []int)

Deprecated: Use PacketFlags.ProtoReflect.Descriptor instead.

func (*PacketFlags) GetDiscard

func (x *PacketFlags) GetDiscard() bool

func (*PacketFlags) GetForwarded

func (x *PacketFlags) GetForwarded() bool

func (*PacketFlags) GetFromStakedNode

func (x *PacketFlags) GetFromStakedNode() bool

func (*PacketFlags) GetRepair

func (x *PacketFlags) GetRepair() bool

func (*PacketFlags) GetSimpleVoteTx

func (x *PacketFlags) GetSimpleVoteTx() bool

func (*PacketFlags) GetTracerPacket

func (x *PacketFlags) GetTracerPacket() bool

func (*PacketFlags) ProtoMessage

func (*PacketFlags) ProtoMessage()

func (*PacketFlags) ProtoReflect

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

func (*PacketFlags) Reset

func (x *PacketFlags) Reset()

func (*PacketFlags) String

func (x *PacketFlags) String() string

Jump to

Keyboard shortcuts

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