dropfields

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Drops fields from any passing flow.

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldSplitRegex = regexp.MustCompile(`[\s,;:]+`)
)

Functions

This section is empty.

Types

type DropFields

type DropFields struct {
	segments.BaseSegment
	Policy Policy   // required, determines whether to keep or drop fields
	Fields []string // required, determines which fields are kept/dropped
}

func (*DropFields) New

func (segment *DropFields) New(config map[string]string) segments.Segment

func (*DropFields) Run

func (segment *DropFields) Run(wg *sync.WaitGroup)

type Policy added in v1.2.0

type Policy int
const (
	PolicyDrop Policy = iota
	PolicyKeep
)

Jump to

Keyboard shortcuts

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