Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDuration ¶
ParseDuration parses the given string and returns a numeric Duration. The format of the string must be consistent with that expected by the Mesos stout library; the string should consist of two parts, a floating-point numeric followed by a unit (no spaces in between). The following units are recognized: "ns", "us", "ms", "secs", "mins", "hrs", "days", "weeks". Examples of valid input strings are "10ns" and "1.5days". see https://github.com/apache/mesos/blob/4d2b1b793e07a9c90b984ca330a3d7bc9e1404cc/3rdparty/libprocess/3rdparty/stout/include/stout/duration.hpp
Types ¶
type FormatError ¶
type FormatError struct {
Duration string
}
FormatError is generated when an invalid duration string is parsed; the format of the duration string is completely unrecognized in this case.
func (*FormatError) Error ¶
func (fe *FormatError) Error() string