Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSearchTotalDownloads ¶
CheckSearchTotalDownloads checks that the search index is properly updated. It retries a few times as they are generally updated in background.
func CheckTotalDownloads ¶ added in v5.10.0
CheckTotalDownloads checks that the download counts are updated .
func ThisMonth ¶ added in v5.10.0
ThisMonth processes the given day-count mappings, and calculates how many of the counts occurred in the current month. This is necessary as stats are grouped by the current month, and therefore the value changes depending on how far through the month you are.
Each input map is keyed by how many days in the past the count occurred, the value being the count that occured on that day. It is fine for more than one map to contain the same key.
func ThisWeek ¶ added in v5.10.0
ThisWeek processes the given day-count mappings, and calculates how many of the counts occurred in the current week. This is necessary as weekly stats are grouped by ISO8601 week, and therefore the value changes depending on how far through the week you are.
Each input map is keyed by how many days in the past the count occurred, the value being the count that occured on that day. It is fine for more than one map to contain the same key.
Types ¶
This section is empty.