Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NfqueueCfg ¶
type NfqueueCfg struct {
LocalNets []string
PluginDirs []string
PluginFiles []string
QIDs []int
Policy string
OnError string
TickSeconds int
}
NfqueueCfg defines the configuration of nfqueue manager
func (*NfqueueCfg) BindViper ¶
func (cfg *NfqueueCfg) BindViper(v *viper.Viper, prefix string)
BindViper setups posix flags for commandline configuration and bind to viper
func (NfqueueCfg) Empty ¶
func (cfg NfqueueCfg) Empty() bool
Empty returns true if configuration is empty
func (*NfqueueCfg) FromViper ¶
func (cfg *NfqueueCfg) FromViper(v *viper.Viper, prefix string)
FromViper fill values from viper
func (*NfqueueCfg) SetPFlags ¶
func (cfg *NfqueueCfg) SetPFlags(short bool, prefix string)
SetPFlags setups posix flags for commandline configuration
func (NfqueueCfg) Validate ¶
func (cfg NfqueueCfg) Validate() error
Validate checks that configuration is ok
Click to show internal directories.
Click to hide internal directories.