# Functions
And returns a new resource filter that merges the passed-in filters with logical AND.
AsFixedDuration converts d to a FixedDuration instance.
AsFixedDurationNullZero converts d to a FixedDurationNullZero instance.
AsTimestamp converts a time.Time to Timestamp.
CompareField returns a new filter comparing a single field path.
Data returns a new DataQuery that joins passed in filters with logical AND.
DataAnd joins one or more data filters with logical and.
Equal returns a comparison that match values equal to v.
FilterAll returns an empty filter, meaning it match all resources.
FixedCalendarDuration returns a duration that spans a fixed duration.
FixedCalendarDurationNullZero returns a calendar duration that spans a fixed duration.
Greater returns a comparison that matches values > gte.
GreaterOrEqual returns a comparison that matches values >= gte.
In returns a comparison that match values in elements.
Less returns a comparison that matches values < lt.
LessOrEqual returns a comparison that matches values <= lte.
MergeOperators merges multiple comparisons with different operators together to a single comparison entry.
MonthDuration returns a duration that spans a given number of months.
MonthDurationNullZero returns a calendar duration that spans a given number of months.
NotEqual returns a comparison that match values not equal to v.
NotIn returns a comparison that match values not in elements.
Or returns a new resource filter that merges the passed-in filters with logical OR.
ParseCalendarDuration converts text-encoded RFC 3339 duration to its CalendarDuration representation.
ParseFixedDuration parses a RFC 3339 string accepting weeks, days, hours, minute, seconds and fractions.
Query returns a new resource query which joins the passed in filters with logical AND.
Range is a short-hand for:
MergeComparisons(GreaterThanOrEqual(gte), LessThan(lt)).
Regex returns a comparison that match values that matches the provided regexp pattern.
SeriesIn return a data filter that reduce the time-series to encode in the final result to the ones that are in the specified list of keys.
TimeRange return a TimesFilter that matches times in range [gte,lt).
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parsing errors.
Parsing errors.
Parsing errors.
OriginTime defines midnight of the first Monday of year 2000 in the UTC time-zone (2000-01-03T00:00:00Z) as microseconds since the epoch.
# Structs
No description provided by the author
CalendarDuration allows encoding either a fixed duration or a monthly duration as an RFC 3339 duration.
Comparison allows comparing a particular value with one or more operators.
DataFilter describe a type can return an internal data filter structure.
DataQuery holds a data fields.
FixedDuration wraps a time.Duration so that it's JSON encoded as an RFC 3339 duration string.
No description provided by the author
ResourceFilter describe a filter for matching clarify resources.
ResourceQuery holds a resource fields.
# Interfaces
ResourceFilterType is a sum type of all types that can be converted to a Filter instance.
# Type aliases
No description provided by the author
No description provided by the author
Base64 wraps a slice of bytes in order for it to be represented as an RF 4648 raw URL encoded string (i.e without padding).
Base64NullZero is a variant of Base64 which zero value JSON-encodes to null.
CalendarDurationNullZero is a variant of CalendarDuration that JSON encodes the zero-value to null.
No description provided by the author
EnumValues maps integer Items values to strings.
FixedDurationNullZero is a variant of FixedDuration that JSON encodes the zero-value as null.
Hexadecimal wraps a slice of bytes in order for it to be represented as a hexadecimal string when encoded.
HexadecimalNullZero is a variant of Hexadecimal which zero value JSON-encodes to null.
No description provided by the author
Number is a float64 value that JSON encodes the IEEE 754 "not-a-number" value to 'null'.
Timestamp provides a hashable and comparable alternative to time.Time, stored as microseconds since the epoch.