Documentation ¶
Index ¶
Constants ¶
View Source
const ( LastXHours string = "^last \\d+ hour(s)?$" LastDay string = "^last day$" LastXDays string = "^last \\d+ day(s)?$" LastMonth string = "^last month$" Yesterday string = "^yesterday$" )
Special query cases
Variables ¶
This section is empty.
Functions ¶
func AbsoluteDateStringQuery ¶
func ValidateDateFilters ¶ added in v1.251.0
Types ¶
type PageParams ¶ added in v1.251.0
type PageParams struct { Limit int64 `json:"limit,omitempty"` // Limit number of items returned in list (default: 0 (no limit)) Offset int64 `json:"offset,omitempty"` // Offset in list (default: 0 (no offset)) }
func (*PageParams) EnforceLimit ¶ added in v1.251.0
func (params *PageParams) EnforceLimit()
func (*PageParams) Validate ¶ added in v1.251.0
func (params *PageParams) Validate() error
Click to show internal directories.
Click to hide internal directories.