Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // > @3@4@5@6 // > // > Prioritized list of fields. The first field found will be used to calculate the hash. // > // > `Field` params: // > * **`field`** *`cfg.FieldSelector`* *`required`* // > // > The event field for calculating the hash. // > // > * **`format`** *`string`* *`default=no`* *`options=no|normalize`* // > // > The field format for various hashing algorithms. // > // > * **`max_size`** *`int`* *`default=0`* // > // > The maximum field size used in hash calculation of any format. // > If set to `0`, the entire field will be used in hash calculation. // > // > > If the field size is greater than `max_size`, then // > the first `max_size` bytes will be used in hash calculation. // > > // > > It can be useful in case of performance degradation when calculating the hash of long fields. Fields []Field `json:"fields" slice:"true" required:"true"` // * // > @3@4@5@6 // > // > The event field to which put the hash. ResultField cfg.FieldSelector `json:"result_field" parse:"selector" required:"true"` // * ResultField_ []string }
! config-params ^ config-params
type Field ¶
type Field struct { Field cfg.FieldSelector `json:"field" parse:"selector" required:"true"` Field_ []string Format string `json:"format" default:"no" options:"no|normalize"` Format_ fieldFormat MaxSize int `json:"max_size" default:"0"` }
Click to show internal directories.
Click to hide internal directories.