reconstructor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCommonTimeStampAttribute

func IsCommonTimeStampAttribute(attribute string) bool

func TryExtractTimestamp

func TryExtractTimestamp(log environment_logs.EnvironmentLogWithMetadata) time.Time

Try to extract a timestamp from the log attributes with `dateparse.ParseStrict`.

If no timestamp is found, or if all timestamps fail to parse, a zero value is returned.

Use with `cmp.Or` to fallback to a default timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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