Documentation ¶
Overview ¶
Package fileoutput saves captured NDN trafic to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogrotateOutput ¶
type LogrotateOutput[T ndntdump.RecordOutput] struct { // contains filtered or unexported fields }
LogrotateOutput wraps a file-based RecordOutput to reopen the file upon SIGHUP.
func NewLogrotateOutput ¶
func NewLogrotateOutput[T ndntdump.RecordOutput](filename string, create func(string) (T, error)) (o *LogrotateOutput[T], e error)
NewLogrotateOutput creates LogrotateOutput.
func (*LogrotateOutput[T]) Close ¶
func (o *LogrotateOutput[T]) Close() error
type NdjsonOutput ¶
type NdjsonOutput struct {
// contains filtered or unexported fields
}
NdjsonOutput saves packet information in Newline delimited JSON (NDJSON) file.
func NewNdjsonOutput ¶
func NewNdjsonOutput(filename string) (o *NdjsonOutput, e error)
NewNdjsonOutput creates NdjsonOutput.
func (*NdjsonOutput) Close ¶
func (o *NdjsonOutput) Close() error
type PcapngOutput ¶
type PcapngOutput struct {
// contains filtered or unexported fields
}
PcapngOutput saves packet bytes in pcapng file.
func NewPcapngOutput ¶
func NewPcapngOutput(filename string) (o *PcapngOutput, e error)
NewPcapngOutput creates PcapngOutput.
func (*PcapngOutput) Close ¶
func (o *PcapngOutput) Close() error
Click to show internal directories.
Click to hide internal directories.