pkg

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilters

func ApplyFilters(records []types.Event, filters ...Filter) ([]types.Event, error)

func MergeRegex

func MergeRegex(regexlist []string) string

Join all individual patterns into a single string separated by the "|" operator

func ParseDurationToUTC

func ParseDurationToUTC(input string) (time.Time, error)

parseDurationToUTC parses the given startTime string as a duration and subtracts it from the current UTC time. It returns the resulting time and any parsing error encountered.

func PrintEvents

func PrintEvents(filterEvents []types.Event, printUrl bool, printRaw bool)

PrintEvents prints the details of each event in the provided slice of events. It takes a slice of types.Event

Types

type Filter

type Filter func(types.Event) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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