Documentation ¶
Index ¶
Constants ¶
View Source
const ( IntervalMinute = "minute" IntervalHour = "hour" )
Variables ¶
This section is empty.
Functions ¶
func ValidateListRequest ¶
func ValidateListRequest(sl validator.StructLevel)
Types ¶
type API ¶
type ListRequest ¶
type SearchRequest ¶
type StatsListResponse ¶
type StatsListResponse struct { Data []StatsResponse `json:"data"` Meta struct { DeletedBefore *datetime.CpsTime `json:"deleted_before,omitempty" swaggertype:"integer"` } `json:"meta"` }
type StatsResponse ¶
type Store ¶
type Store interface { Find(context.Context, ListRequest) ([]StatsResponse, error) // GetDeletedBeforeForHours gets the lower bound time value for hourly request. GetDeletedBeforeForHours(ctx context.Context) (*datetime.CpsTime, error) }
Click to show internal directories.
Click to hide internal directories.