Documentation
¶
Index ¶
- func CustomFunctions[K any]() map[string]ottl.Factory[K]
- func NewCidrMatchFactory[K any]() ottl.Factory[K]
- func NewDbQueryScrubFactory[K any]() ottl.Factory[K]
- func NewExistsFactory[K any]() ottl.Factory[K]
- func NewIpLocationFactory[K any]() ottl.Factory[K]
- func NewIsInFactory[K any]() ottl.Factory[K]
- func NewLookupFactory[K any]() ottl.Factory[K]
- func NewUrlScrubFactory[K any]() ottl.Factory[K]
- func ScrubWord(word string) string
- type CidrMatchArguments
- type DBQueryScrubArguments
- type IPLocationLookup
- type IpLocationArguments
- type IsInArguments
- type LookupArguments
- type UrlScrubArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCidrMatchFactory ¶
NewCidrMatchFactory Factory function to create a new instance of cidrMatch
func NewDbQueryScrubFactory ¶ added in v0.14.1
func NewExistsFactory ¶
func NewIpLocationFactory ¶
NewIpLocationFactory Create the factory for the iplocation function
func NewIsInFactory ¶
func NewLookupFactory ¶
func NewUrlScrubFactory ¶ added in v0.8.0
Types ¶
type CidrMatchArguments ¶
type CidrMatchArguments[K any] struct { Subnet ottl.StringGetter[K] IP ottl.StringGetter[K] }
CidrMatchArguments Define the arguments struct for the cidrMatch function
type DBQueryScrubArguments ¶ added in v0.14.1
type DBQueryScrubArguments[K any] struct { Query ottl.StringGetter[K] }
type IPLocationLookup ¶ added in v0.24.23
type IPLocationLookup struct { Country struct { ISOCode string `maxminddb:"iso_code"` Names map[string]string `maxminddb:"names"` } `maxminddb:"country"` City struct { Names map[string]string `maxminddb:"names"` } `maxminddb:"city"` Location struct { Latitude float64 `maxminddb:"latitude"` Longitude float64 `maxminddb:"longitude"` } `maxminddb:"location"` Postal struct { Code string `maxminddb:"code"` } `maxminddb:"postal"` }
type IpLocationArguments ¶
type IpLocationArguments[K any] struct { Target ottl.StringGetter[K] // Target is the IP address to locate }
IpLocationArguments holds the target IP
type IsInArguments ¶
type IsInArguments[K any] struct { Target ottl.StringGetter[K] List []string }
type LookupArguments ¶
type LookupArguments[K any] struct { LookupKey ottl.StringGetter[K] Lookup []string // Array in [key1, value1, key2, value2, ...] format DefaultTo string }
type UrlScrubArguments ¶ added in v0.8.0
type UrlScrubArguments[K any] struct { Url ottl.StringGetter[K] }
Click to show internal directories.
Click to hide internal directories.