Documentation
¶
Overview ¶
Package timerange resolves user-supplied time-range inputs (a relative "since" duration or an explicit RFC3339 from/to pair) into a client.TimeRange. It is shared by the CLI flag layer and the MCP server so both surfaces accept the exact same grammar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid time range")
ErrInvalid is wrapped by every validation failure in Resolve so callers can map any malformed combination to a single "invalid time range" error path.
Functions ¶
func ParseRelativeDuration ¶
ParseRelativeDuration accepts time.ParseDuration's standard input plus a simple "Nd" form (positive integer days) which time.ParseDuration rejects. Compound forms like "7d2h" or "7D" are not supported on purpose.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.