config

package
v0.0.0-...-320d922 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 5 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 {
	Interfaces InterfacesConfig
	Flows      *Flows
	Protocols  map[string]*ucfg.Config
	Shipper    publisher.ShipperConfig
	Procs      procs.ProcsConfig
	RunOptions droppriv.RunOptions
	Logging    logp.Logging
	Filter     map[string]interface{}
}
var ConfigSingleton Config

Config Singleton

type Flows

type Flows struct {
	Timeout string
	Period  string
}

type InterfacesConfig

type InterfacesConfig struct {
	Device         string
	Type           string
	File           string
	With_vlans     bool
	Bpf_filter     string
	Snaplen        int
	Buffer_size_mb int
	TopSpeed       bool
	Dumpfile       string
	OneAtATime     bool
	Loop           int
}

type ProtocolCommon

type ProtocolCommon struct {
	Ports              []int `config:"ports"`
	SendRequest        bool  `config:"send_request"`
	SendResponse       bool  `config:"send_response"`
	TransactionTimeout int   `config:"transaction_timeout"`
}

Jump to

Keyboard shortcuts

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