time

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 5 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 `mapstructure:",squash" yaml:",inline"`
	helper.TimeParser        `mapstructure:",omitempty,squash" 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) 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