writer

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLogFileWriter added in v0.23.0

type KeyLogFileWriter struct {
	// contains filtered or unexported fields
}

func NewKeyLogFileWriter added in v0.23.0

func NewKeyLogFileWriter(fpath string) (*KeyLogFileWriter, error)

func (*KeyLogFileWriter) Close added in v0.23.0

func (k *KeyLogFileWriter) Close() error

func (*KeyLogFileWriter) Flush added in v0.23.0

func (k *KeyLogFileWriter) Flush() error

func (*KeyLogFileWriter) Write added in v0.23.0

func (k *KeyLogFileWriter) Write(line string) error

type KeyLogPcapNGWriter added in v0.23.0

type KeyLogPcapNGWriter struct {
	// contains filtered or unexported fields
}

func NewKeyLogPcapNGWriter added in v0.23.0

func NewKeyLogPcapNGWriter(w *PcapNGWriter) *KeyLogPcapNGWriter

func (*KeyLogPcapNGWriter) Close added in v0.23.0

func (k *KeyLogPcapNGWriter) Close() error

func (*KeyLogPcapNGWriter) Flush added in v0.23.0

func (k *KeyLogPcapNGWriter) Flush() error

func (*KeyLogPcapNGWriter) Write added in v0.23.0

func (k *KeyLogPcapNGWriter) Write(line string) error

type KeyLogWriter added in v0.23.0

type KeyLogWriter interface {
	Write(line string) error
	Flush() error
	Close() error
}

type PacketWriter

type PacketWriter interface {
	Write(e *event.Packet) error
	Flush() error
	Close() error
}

type PcapNGWriter

type PcapNGWriter struct {
	// contains filtered or unexported fields
}

func NewPcapNGWriter

func NewPcapNGWriter(pw *pcapgo.NgWriter, pcache *metadata.ProcessCache,
	interfaceIds map[string]int) *PcapNGWriter

func (*PcapNGWriter) AddDev added in v0.25.0

func (w *PcapNGWriter) AddDev(dev types.Device)

func (*PcapNGWriter) Close

func (w *PcapNGWriter) Close() error

func (*PcapNGWriter) Flush

func (w *PcapNGWriter) Flush() error

func (*PcapNGWriter) WithNoBuffer added in v0.7.0

func (w *PcapNGWriter) WithNoBuffer() *PcapNGWriter

func (*PcapNGWriter) WithPcapFilter added in v0.25.0

func (w *PcapNGWriter) WithPcapFilter(filter string) *PcapNGWriter

func (*PcapNGWriter) Write

func (w *PcapNGWriter) Write(e *event.Packet) error

func (*PcapNGWriter) WriteTLSKeyLog added in v0.23.0

func (w *PcapNGWriter) WriteTLSKeyLog(line string) error

type PcapWriter added in v0.5.0

type PcapWriter struct {
	// contains filtered or unexported fields
}

func NewPcapWriter added in v0.5.0

func NewPcapWriter(pw *pcapgo.Writer) *PcapWriter

func (*PcapWriter) Close added in v0.5.0

func (w *PcapWriter) Close() error

func (*PcapWriter) Flush added in v0.5.0

func (w *PcapWriter) Flush() error

func (*PcapWriter) Write added in v0.5.0

func (w *PcapWriter) Write(e *event.Packet) error

type StdoutWriter

type StdoutWriter struct {
	Decoder       gopacket.Decoder
	OneLine       bool
	PrintNumber   bool
	NoTimestamp   bool
	TimestampNano bool
	DoNothing     bool
	FormatStyle   pktdump.FormatStyle
	DataStyle     pktdump.ContentStyle
	// contains filtered or unexported fields
}

func NewStdoutWriter

func NewStdoutWriter(writer io.Writer, pcache *metadata.ProcessCache) *StdoutWriter

func (*StdoutWriter) Close

func (w *StdoutWriter) Close() error

func (*StdoutWriter) Flush

func (w *StdoutWriter) Flush() error

func (*StdoutWriter) Write

func (w *StdoutWriter) Write(e *event.Packet) error

Jump to

Keyboard shortcuts

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