pb

package
v0.0.0-...-a0051f6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 5 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 Packet

type Packet struct {
	Pcap      *Packet_Pcap           `protobuf:"bytes,1,opt,name=pcap,proto3" json:"pcap,omitempty"`
	Meta      *Packet_Metadata       `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Iface     *Packet_Interface      `protobuf:"bytes,4,opt,name=iface,proto3" json:"iface,omitempty"`
	L2        *Packet_Layer2         `protobuf:"bytes,5,opt,name=l2,proto3" json:"l2,omitempty"`
	// Types that are assignable to L3:
	//
	//	*Packet_Ip
	//	*Packet_Ip4
	//	*Packet_Ip6
	L3 isPacket_L3 `protobuf_oneof:"l3"`
	// contains filtered or unexported fields
}

func (*Packet) Descriptor deprecated

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

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetIface

func (x *Packet) GetIface() *Packet_Interface

func (*Packet) GetIp

func (x *Packet) GetIp() *Packet_Layer3

func (*Packet) GetIp4

func (x *Packet) GetIp4() *Packet_IPv4

func (*Packet) GetIp6

func (x *Packet) GetIp6() *Packet_IPv6

func (*Packet) GetL2

func (x *Packet) GetL2() *Packet_Layer2

func (*Packet) GetL3

func (m *Packet) GetL3() isPacket_L3

func (*Packet) GetMeta

func (x *Packet) GetMeta() *Packet_Metadata

func (*Packet) GetPcap

func (x *Packet) GetPcap() *Packet_Pcap

func (*Packet) GetTimestamp

func (x *Packet) GetTimestamp() *timestamppb.Timestamp

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 Packet_IPv4

type Packet_IPv4 struct {
	Source uint32 `protobuf:"fixed32,1,opt,name=source,proto3" json:"source,omitempty"`
	Target uint32 `protobuf:"fixed32,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_IPv4) Descriptor deprecated

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

Deprecated: Use Packet_IPv4.ProtoReflect.Descriptor instead.

func (*Packet_IPv4) GetSource

func (x *Packet_IPv4) GetSource() uint32

func (*Packet_IPv4) GetTarget

func (x *Packet_IPv4) GetTarget() uint32

func (*Packet_IPv4) ProtoMessage

func (*Packet_IPv4) ProtoMessage()

func (*Packet_IPv4) ProtoReflect

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

func (*Packet_IPv4) Reset

func (x *Packet_IPv4) Reset()

func (*Packet_IPv4) String

func (x *Packet_IPv4) String() string

type Packet_IPv6

type Packet_IPv6 struct {
	Source []byte `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Target []byte `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_IPv6) Descriptor deprecated

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

Deprecated: Use Packet_IPv6.ProtoReflect.Descriptor instead.

func (*Packet_IPv6) GetSource

func (x *Packet_IPv6) GetSource() []byte

func (*Packet_IPv6) GetTarget

func (x *Packet_IPv6) GetTarget() []byte

func (*Packet_IPv6) ProtoMessage

func (*Packet_IPv6) ProtoMessage()

func (*Packet_IPv6) ProtoReflect

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

func (*Packet_IPv6) Reset

func (x *Packet_IPv6) Reset()

func (*Packet_IPv6) String

func (x *Packet_IPv6) String() string

type Packet_Interface

type Packet_Interface struct {
	Index uint32   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Name  string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Addrs []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_Interface) Descriptor deprecated

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

Deprecated: Use Packet_Interface.ProtoReflect.Descriptor instead.

func (*Packet_Interface) GetAddrs

func (x *Packet_Interface) GetAddrs() []string

func (*Packet_Interface) GetIndex

func (x *Packet_Interface) GetIndex() uint32

func (*Packet_Interface) GetName

func (x *Packet_Interface) GetName() string

func (*Packet_Interface) ProtoMessage

func (*Packet_Interface) ProtoMessage()

func (*Packet_Interface) ProtoReflect

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

func (*Packet_Interface) Reset

func (x *Packet_Interface) Reset()

func (*Packet_Interface) String

func (x *Packet_Interface) String() string

type Packet_Ip

type Packet_Ip struct {
	Ip *Packet_Layer3 `protobuf:"bytes,6,opt,name=ip,proto3,oneof"`
}

type Packet_Ip4

type Packet_Ip4 struct {
	Ip4 *Packet_IPv4 `protobuf:"bytes,7,opt,name=ip4,proto3,oneof"`
}

type Packet_Ip6

type Packet_Ip6 struct {
	Ip6 *Packet_IPv6 `protobuf:"bytes,8,opt,name=ip6,proto3,oneof"`
}

type Packet_Layer2

type Packet_Layer2 struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	Type   string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_Layer2) Descriptor deprecated

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

Deprecated: Use Packet_Layer2.ProtoReflect.Descriptor instead.

func (*Packet_Layer2) GetSource

func (x *Packet_Layer2) GetSource() string

func (*Packet_Layer2) GetTarget

func (x *Packet_Layer2) GetTarget() string

func (*Packet_Layer2) GetType

func (x *Packet_Layer2) GetType() string

func (*Packet_Layer2) ProtoMessage

func (*Packet_Layer2) ProtoMessage()

func (*Packet_Layer2) ProtoReflect

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

func (*Packet_Layer2) Reset

func (x *Packet_Layer2) Reset()

func (*Packet_Layer2) String

func (x *Packet_Layer2) String() string

type Packet_Layer3

type Packet_Layer3 struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_Layer3) Descriptor deprecated

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

Deprecated: Use Packet_Layer3.ProtoReflect.Descriptor instead.

func (*Packet_Layer3) GetSource

func (x *Packet_Layer3) GetSource() string

func (*Packet_Layer3) GetTarget

func (x *Packet_Layer3) GetTarget() string

func (*Packet_Layer3) ProtoMessage

func (*Packet_Layer3) ProtoMessage()

func (*Packet_Layer3) ProtoReflect

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

func (*Packet_Layer3) Reset

func (x *Packet_Layer3) Reset()

func (*Packet_Layer3) String

func (x *Packet_Layer3) String() string

type Packet_Metadata

type Packet_Metadata struct {
	Truncated     bool   `protobuf:"varint,1,opt,name=truncated,proto3" json:"truncated,omitempty"`
	Length        uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	CaptureLength uint64 `protobuf:"varint,3,opt,name=capture_length,json=captureLength,proto3" json:"capture_length,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_Metadata) Descriptor deprecated

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

Deprecated: Use Packet_Metadata.ProtoReflect.Descriptor instead.

func (*Packet_Metadata) GetCaptureLength

func (x *Packet_Metadata) GetCaptureLength() uint64

func (*Packet_Metadata) GetLength

func (x *Packet_Metadata) GetLength() uint64

func (*Packet_Metadata) GetTruncated

func (x *Packet_Metadata) GetTruncated() bool

func (*Packet_Metadata) ProtoMessage

func (*Packet_Metadata) ProtoMessage()

func (*Packet_Metadata) ProtoReflect

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

func (*Packet_Metadata) Reset

func (x *Packet_Metadata) Reset()

func (*Packet_Metadata) String

func (x *Packet_Metadata) String() string

type Packet_Pcap

type Packet_Pcap struct {
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	Serial  uint64 `protobuf:"varint,2,opt,name=serial,proto3" json:"serial,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet_Pcap) Descriptor deprecated

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

Deprecated: Use Packet_Pcap.ProtoReflect.Descriptor instead.

func (*Packet_Pcap) GetContext

func (x *Packet_Pcap) GetContext() string

func (*Packet_Pcap) GetSerial

func (x *Packet_Pcap) GetSerial() uint64

func (*Packet_Pcap) ProtoMessage

func (*Packet_Pcap) ProtoMessage()

func (*Packet_Pcap) ProtoReflect

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

func (*Packet_Pcap) Reset

func (x *Packet_Pcap) Reset()

func (*Packet_Pcap) String

func (x *Packet_Pcap) String() string

Jump to

Keyboard shortcuts

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