decoder

package
v0.0.0-...-69be92c Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSDecoder

type DNSDecoder struct{}

DNSDecoder implements PacketDecoder for DNS traffic

func (*DNSDecoder) CanDecode

func (d *DNSDecoder) CanDecode(packet gopacket.Packet) bool

CanDecode checks if the packet contains DNS traffic (UDP port 53)

func (*DNSDecoder) Decode

func (d *DNSDecoder) Decode(packet gopacket.Packet) (*core.PacketInfo, error)

Decode extracts DNS information from the packet

type HTTPDecoder

type HTTPDecoder struct{}

HTTPDecoder implements PacketDecoder for HTTP traffic

func (*HTTPDecoder) CanDecode

func (d *HTTPDecoder) CanDecode(packet gopacket.Packet) bool

CanDecode checks if the packet contains HTTP traffic

func (*HTTPDecoder) Decode

func (d *HTTPDecoder) Decode(packet gopacket.Packet) (*core.PacketInfo, error)

Decode extracts HTTP information from the packet

type TLSDecoder

type TLSDecoder struct{}

TLSDecoder implements PacketDecoder for TLS traffic

func (*TLSDecoder) CanDecode

func (d *TLSDecoder) CanDecode(packet gopacket.Packet) bool

CanDecode checks if the packet contains TLS traffic

func (*TLSDecoder) Decode

func (d *TLSDecoder) Decode(packet gopacket.Packet) (*core.PacketInfo, error)

Decode extracts TLS record information from the packet

Jump to

Keyboard shortcuts

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