output

package
v3.43.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(async, batches bool, content string) string

Description appends standard feature descriptions to an output description based on various features of the output.

func MetadataFields

func MetadataFields() docs.FieldSpecs

MetadataFields returns a docs spec for the fields within a metadata config struct.

Types

type Metadata

type Metadata struct {
	ExcludePrefixes []string `json:"exclude_prefixes" yaml:"exclude_prefixes"`
}

Metadata describes actions to be performed on message metadata before being sent to an output destination.

func NewMetadata

func NewMetadata() Metadata

NewMetadata returns a Metadata configuration struct with default values.

func (Metadata) Filter

func (m Metadata) Filter() (*MetadataFilter, error)

Filter attempts to construct a metadata filter.

type MetadataFilter

type MetadataFilter struct {
	// contains filtered or unexported fields
}

MetadataFilter provides a way to filter metadata keys based on a Metadata config.

func (*MetadataFilter) Iter

func (f *MetadataFilter) Iter(m types.Metadata, fn func(k, v string) error) error

Iter applies a function to each metadata key value pair that passes the filter.

Jump to

Keyboard shortcuts

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