Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryParseTimestampRFC3339Nano ¶
TryParseTimestampRFC3339Nano parses s as RFC3339 with optional nanoseconds part and timezone offset and returns unix timestamp in nanoseconds.
If s doesn't contain timezone offset, then the local timezone is used.
The returned timestamp can be negative if s is smaller than 1970 year.
Types ¶
type Field ¶
type Field struct {
// Name is the name of the field
Name string
// Value is the value of the field
Value string
}
Field is a single field for the log entry.
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func ParseQueryAtTimestamp ¶
ParseQueryAtTimestamp parses s in the context of the given timestamp.
E.g. _time:duration filters are adjusted according to the provided timestamp as _time:[timestamp-duration, duration].
Click to show internal directories.
Click to hide internal directories.