Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorTag = "iplookup_error"
ErrorTag tag added to event when process module failed
View Source
const ModuleName = "iplookup"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig Server string `json:"server" yaml:"server"` // server to connect to Timeout uint `json:"timeout" yaml:"timeout"` // timeout in milliseconds Key string `json:"key" yaml:"key"` // field to save the result to IPField string `json:"ip_field" yaml:"ip_field"` // IP field to get ip address from SkipPrivate bool `json:"skip_private" yaml:"skip_private"` // skip private IP addresses PrivateNet []string `json:"private_net" yaml:"private_net"` // list of own defined private IP addresses // contains filtered or unexported fields }
FilterConfig holds the configuration json fields and internal objects
func DefaultFilterConfig ¶
func DefaultFilterConfig() FilterConfig
DefaultFilterConfig returns an FilterConfig struct with default values
Click to show internal directories.
Click to hide internal directories.