flowlogger

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLatency = 5 * time.Second

Variables

This section is empty.

Functions

func PrettyPrintPolicyType

func PrettyPrintPolicyType(policyType uint8) string

func PrettyPrintProtocolIdentifier

func PrettyPrintProtocolIdentifier(protocolID uint8) string

func PrettyPrintRuleAction

func PrettyPrintRuleAction(action uint8) string

Types

type FlowLogger

type FlowLogger struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewFlowLogger

func NewFlowLogger(path string, maxSize int, maxBackups int, maxAge int, compress bool) *FlowLogger

func (*FlowLogger) Close

func (fl *FlowLogger) Close()

func (*FlowLogger) Flush

func (fl *FlowLogger) Flush() error

func (*FlowLogger) FlushLoop

func (fl *FlowLogger) FlushLoop(stopCh <-chan struct{})

func (*FlowLogger) WriteRecord

func (fl *FlowLogger) WriteRecord(r *flowrecord.FlowRecord, prettyPrint bool) error

Jump to

Keyboard shortcuts

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