time

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeParserConfig

type TimeParserConfig struct {
	helper.TransformerConfig `yaml:",inline"`
	helper.TimeParser        `yaml:",omitempty,inline"`
}

TimeParserConfig is the configuration of a time parser operator.

func NewTimeParserConfig

func NewTimeParserConfig(operatorID string) *TimeParserConfig

NewTimeParserConfig creates a new time parser config with default values

func (TimeParserConfig) Build

Build will build a time parser operator.

type TimeParserOperator

type TimeParserOperator struct {
	helper.TransformerOperator
	helper.TimeParser
}

TimeParserOperator is an operator that parses time from a field to an entry.

func (*TimeParserOperator) CanOutput

func (t *TimeParserOperator) CanOutput() bool

CanOutput will always return true for a parser operator.

func (*TimeParserOperator) Process

func (t *TimeParserOperator) Process(ctx context.Context, entry *entry.Entry) error

Process will parse time from an entry.

Jump to

Keyboard shortcuts

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