treplace

package
v0.0.0-...-b41040d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 5 Imported by: 0

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

NewTransform creates replaceTransform

func (*Config) VerifyConfig

func (c *Config) VerifyConfig(schema base.LogSchema) error

VerifyConfig verifies replaceTransform config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL