tags

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags registers persistent flags.

Types

type Config

type Config struct {
	// Tags is the sequence of key/value pairs that are added to the event
	Tags []Tag `mapstructure:"tags"`
	// Enabled indicates whether this transformer is enabled
	Enabled bool `mapstructure:"enabled"`
}

Config stores the configuration for the tags transformer

type Tag

type Tag struct {
	Key   string `mapstructure:"key"`
	Value string `mapstructure:"value"`
}

Tag represents a distinct tag with its key and value attached.

Jump to

Keyboard shortcuts

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