Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateStatsTable ¶
GenerateStatsTable recreates stats table in database
func MarkUsersToFetch ¶
MarkUsersToFetch marks users with stale data to refresh
Types ¶
type RankingManager ¶
RankingManager is able to recreate ranking tables
func (*RankingManager) MigrateRankingResults ¶
func (m *RankingManager) MigrateRankingResults()
MigrateRankingResults moves data from temporary to target table. Target table will be dropped.
func (*RankingManager) PopulateTemporaryRankingTable ¶
func (m *RankingManager) PopulateTemporaryRankingTable()
PopulateTemporaryRankingTable fills temporary ranking table based on raw anime/manga data
func (*RankingManager) RecreateTemporaryRankingTable ¶
func (m *RankingManager) RecreateTemporaryRankingTable()
RecreateTemporaryRankingTable recreates temporary ranking table
type StatsEntry ¶
type StatsEntry struct { Count int `json:"count"` Mean int `json:"mean"` Median int `json:"median"` }
StatsEntry holds data for single "cell" in stats response
type StatsKind ¶
type StatsKind struct { Completed StatsEntry `json:"completed"` Dropped StatsEntry `json:"dropped"` TotalDays StatsEntry `json:"total_days"` }
StatsKind holds data for single group in stats response
Click to show internal directories.
Click to hide internal directories.