Documentation ¶
Index ¶
- Variables
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)deprecated
- func (x *Meta) GetAddr() string
- func (x *Meta) GetFlags() *PacketFlags
- func (x *Meta) GetPort() uint32
- func (x *Meta) GetSenderStake() uint64
- func (x *Meta) GetSize() uint64
- func (*Meta) ProtoMessage()
- func (x *Meta) ProtoReflect() protoreflect.Message
- func (x *Meta) Reset()
- func (x *Meta) String() string
- type Packet
- type PacketBatch
- type PacketFlags
- func (*PacketFlags) Descriptor() ([]byte, []int)deprecated
- func (x *PacketFlags) GetDiscard() bool
- func (x *PacketFlags) GetForwarded() bool
- func (x *PacketFlags) GetFromStakedNode() bool
- func (x *PacketFlags) GetRepair() bool
- func (x *PacketFlags) GetSimpleVoteTx() bool
- func (x *PacketFlags) GetTracerPacket() bool
- func (*PacketFlags) ProtoMessage()
- func (x *PacketFlags) ProtoReflect() protoreflect.Message
- func (x *PacketFlags) Reset()
- func (x *PacketFlags) String() string
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) GetFlags ¶
func (x *Meta) GetFlags() *PacketFlags
func (*Meta) GetSenderStake ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.