heuristic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCouldNotParse = errors.New("Could not parse timestamp")

Functions

func ParseTimestamp

func ParseTimestamp(v interface{}) (*time.Time, error)

Types

type LogTimestampParser

type LogTimestampParser func(common.LogMessage) *time.Time

func FindTimestampFunc

func FindTimestampFunc(exampleMessage common.LogMessage) LogTimestampParser

type MessageTimestampParser

type MessageTimestampParser func(message string) *time.Time

type TimestampParser

type TimestampParser func(interface{}) *time.Time

func GuessTimestampParseFunc

func GuessTimestampParseFunc(exampleV interface{}) TimestampParser

Jump to

Keyboard shortcuts

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