Documentation
¶
Overview ¶
Package treplace provides 'replace' transform to performs replacements by regular expression on specified field. Both named and unnamed captures are supported in replacement, as in Regexp.Expand
DO NOT use this transform in production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { bconfig.Header `yaml:",inline"` Key string `yaml:"key"` Pattern string `yaml:"pattern"` Replacement string `yaml:"replacement"` }
Config for replaceTransform
func (*Config) NewTransform ¶
func (c *Config) NewTransform(schema base.LogSchema, _ logger.Logger, _ base.LogCustomCounterRegistry) base.LogTransform
NewTransform creates replaceTransform
Click to show internal directories.
Click to hide internal directories.