Documentation ¶
Index ¶
Constants ¶
View Source
const ( Day = 24 * time.Hour Week = 7 * Day )
Variables ¶
View Source
var ( ErrInvalidUnit = errors.New("duration must be week(w), day(d), hour(h), min(m), sec(s), millisec(ms), microsec(us), or nanosec(ns)") ErrInvalidRune = errors.New("invalid rune in declaration") )
Functions ¶
func RawDurationToTimeDuration ¶
RawDurationToTimeDuration extends the builtin duration-parser to support days(d) and weeks(w) as parseable units. The core implementation is copied from InfluxDB OSS's task engine, which itself copied the logic from an internal module in Flux.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.