Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorTag = "gogstash_filter_typeconv_error"
ErrorTag tag added to event when process typeconv failed
View Source
const ModuleName = "typeconv"
ModuleName is the name used in config file
Variables ¶
View Source
var (
ErrorInvalidConvType1 = errutil.NewFactory(`%q is not one of ["string", "int64", "float64"]`)
)
Errors
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig ConvType string `json:"conv_type"` // one of ["string", "int64", "float64"] Fields []string `json:"fields"` // fields to convert type }
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.