Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "useragent"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig // The field containing the user agent string. Source string `json:"source"` // The name of the field to assign user agent data into. // If not specified user agent data will be stored in the root of the event. Target string `json:"target"` // `regexes.yaml` file to use // // You can find the latest version of this here: // <https://github.com/ua-parser/uap-core/blob/master/regexes.yaml> Regexes string `json:"regexes"` // UA parsing is surprisingly expensive. // We can optimize it by adding a cache CacheSize int `json:"cache_size"` // 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.