event_strings

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strings

type Strings struct {
	Tags       []string                `mapstructure:"tags,omitempty" json:"tags,omitempty"`
	Values     []string                `mapstructure:"values,omitempty" json:"values,omitempty"`
	TagNames   []string                `mapstructure:"tag-names,omitempty" json:"tag-names,omitempty"`
	ValueNames []string                `mapstructure:"value-names,omitempty" json:"value-names,omitempty"`
	Debug      bool                    `mapstructure:"debug,omitempty" json:"debug,omitempty"`
	Transforms []map[string]*transform `mapstructure:"transforms,omitempty" json:"transforms,omitempty"`
	// contains filtered or unexported fields
}

Strings provides some of Golang's strings functions to transform: tags, tag names, values and value names

func (*Strings) Apply

func (s *Strings) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg

func (*Strings) Init

func (s *Strings) Init(cfg interface{}, opts ...formatters.Option) error

func (*Strings) WithActions

func (s *Strings) WithActions(act map[string]map[string]interface{})

func (*Strings) WithLogger

func (s *Strings) WithLogger(l *log.Logger)

func (*Strings) WithTargets

func (s *Strings) WithTargets(tcs map[string]*types.TargetConfig)

Jump to

Keyboard shortcuts

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