Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
func (Interval) IsValidGranularity ¶
func (i Interval) IsValidGranularity(g granularity.Granularity) bool
IsValidInterval Checks if a Grandularity is valid for a given Interval of time. Granularities have a max on how big of an internval they can be paired with.
func (Interval) MarshalJSON ¶
func (Interval) MinGranularity ¶
func (i Interval) MinGranularity() granularity.Granularity
Click to show internal directories.
Click to hide internal directories.