config

package
v1.65.16 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Iface              *InterfacesConfig
	Logging            *logp.Logging
	Mode               string
	Dedup              bool
	Filter             string
	Discard            string
	DiscardMethod      string
	DiscardIP          string
	DiscardSrcIP       string
	DiscardDstIP       string
	Zip                bool
	HepCollector       string
	CollectOnlySip     bool
	HepServer          string
	HepNodePW          string
	HepNodeID          uint
	HepNodeName        string
	Network            string
	Protobuf           bool
	Reassembly         bool
	SipAssembly        bool
	SendRetries        uint
	KeepAlive          uint
	Version            bool
	SkipVerify         bool
	HEPBufferDebug     bool
	HEPBufferEnable    bool
	HEPBufferSize      string
	HEPBufferFile      string
	MaxBufferSizeBytes int64
	PrometheusIPPort   string
}
var Cfg Config

type InterfacesConfig

type InterfacesConfig struct {
	Device       string `config:"device"`
	Type         string `config:"type"`
	ReadFile     string `config:"read_file"`
	WriteFile    string `config:"write_file"`
	RotationTime int    `config:"rotation_time"`
	PortRange    string `config:"port_range"`
	WithVlan     bool   `config:"with_vlan"`
	WithErspan   bool   `config:"with_erspan"`
	Snaplen      int    `config:"snaplen"`
	BufferSizeMb int    `config:"buffer_size_mb"`
	ReadSpeed    bool   `config:"top_speed"`
	OneAtATime   bool   `config:"one_at_a_time"`
	Loop         int    `config:"loop"`
	FanoutID     uint   `config:"fanout_id"`
	FanoutWorker int    `config:"fanout_worker"`
	CustomBPF    string `config:"custom_bpf"`
}

Jump to

Keyboard shortcuts

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