Documentation ¶
Index ¶
- Variables
- func Bad(task TaskInterface) (b bool)
- func GetTaskConfig(task TaskInterface) (config mysql.Config, err error)
- func Next(task TaskInterface) (t time.Time)
- func Prev(task TaskInterface) (d time.Time)
- func Run(task TaskInterface)
- type AppsAchievementsQueueAll
- type AppsAchievementsQueueElastic
- type AppsAddTagCountsToInflux
- type AppsArticlesQueueElastic
- type AppsPlayerCheck
- type AppsPlayerCheckTop
- type AppsQueueAll
- type AppsQueueElastic
- type AppsQueueGroups
- type AppsQueueInflux
- type AppsQueuePackages
- type AppsQueueReviews
- type AppsQueueSteamSpy
- type AppsQueueWishlists
- type AppsQueueYoutube
- type AppsSameOwners
- type ArticlesLatest
- type AutoPlayerRefreshes
- type BadgesUpdateRandom
- type BaseTask
- type BundlesQueueAll
- type BundlesQueueElastic
- type DiscordUpdateGuild
- type GlobalSteamStats
- type GroupsQueueElastic
- type GroupsQueuePrimaries
- type GroupsUpdateTop
- type InstagramPost
- type MemcacheClearAll
- type PlayersQueueAll
- type PlayersQueueElastic
- type PlayersQueueGroups
- type PlayersQueueLastUpdated
- type PlayersUpdateRanks
- type ProductsUpdateKeys
- type StatsTask
- type SteamOnline
- type TaskError
- type TaskGroup
- type TaskInterface
- type TaskTime
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Parser = cron.NewParser(cron.Minute | cron.Hour) TaskRegister = map[string]TaskInterface{} )
Functions ¶
func Bad ¶
func Bad(task TaskInterface) (b bool)
func GetTaskConfig ¶
func GetTaskConfig(task TaskInterface) (config mysql.Config, err error)
func Next ¶
func Next(task TaskInterface) (t time.Time)
func Prev ¶
func Prev(task TaskInterface) (d time.Time)
func Run ¶
func Run(task TaskInterface)
Types ¶
type AppsAchievementsQueueAll ¶
type AppsAchievementsQueueAll struct {
BaseTask
}
func (AppsAchievementsQueueAll) Cron ¶
func (c AppsAchievementsQueueAll) Cron() TaskTime
func (AppsAchievementsQueueAll) Group ¶
func (c AppsAchievementsQueueAll) Group() TaskGroup
func (AppsAchievementsQueueAll) ID ¶
func (c AppsAchievementsQueueAll) ID() string
func (AppsAchievementsQueueAll) Name ¶
func (c AppsAchievementsQueueAll) Name() string
type AppsAchievementsQueueElastic ¶
type AppsAchievementsQueueElastic struct {
BaseTask
}
func (AppsAchievementsQueueElastic) Cron ¶
func (c AppsAchievementsQueueElastic) Cron() TaskTime
func (AppsAchievementsQueueElastic) Group ¶
func (c AppsAchievementsQueueElastic) Group() TaskGroup
func (AppsAchievementsQueueElastic) ID ¶
func (c AppsAchievementsQueueElastic) ID() string
func (AppsAchievementsQueueElastic) Name ¶
func (c AppsAchievementsQueueElastic) Name() string
type AppsAddTagCountsToInflux ¶
type AppsAddTagCountsToInflux struct {
BaseTask
}
func (AppsAddTagCountsToInflux) Cron ¶
func (c AppsAddTagCountsToInflux) Cron() TaskTime
func (AppsAddTagCountsToInflux) Group ¶
func (c AppsAddTagCountsToInflux) Group() TaskGroup
func (AppsAddTagCountsToInflux) ID ¶
func (c AppsAddTagCountsToInflux) ID() string
func (AppsAddTagCountsToInflux) Name ¶
func (c AppsAddTagCountsToInflux) Name() string
type AppsArticlesQueueElastic ¶
type AppsArticlesQueueElastic struct {
BaseTask
}
func (AppsArticlesQueueElastic) Cron ¶
func (c AppsArticlesQueueElastic) Cron() TaskTime
func (AppsArticlesQueueElastic) Group ¶
func (c AppsArticlesQueueElastic) Group() TaskGroup
func (AppsArticlesQueueElastic) ID ¶
func (c AppsArticlesQueueElastic) ID() string
func (AppsArticlesQueueElastic) Name ¶
func (c AppsArticlesQueueElastic) Name() string
type AppsPlayerCheck ¶
type AppsPlayerCheck struct {
BaseTask
}
func (AppsPlayerCheck) Cron ¶
func (c AppsPlayerCheck) Cron() TaskTime
func (AppsPlayerCheck) Group ¶
func (c AppsPlayerCheck) Group() TaskGroup
func (AppsPlayerCheck) ID ¶
func (c AppsPlayerCheck) ID() string
func (AppsPlayerCheck) Name ¶
func (c AppsPlayerCheck) Name() string
type AppsPlayerCheckTop ¶
type AppsPlayerCheckTop struct {
BaseTask
}
func (AppsPlayerCheckTop) Cron ¶
func (c AppsPlayerCheckTop) Cron() TaskTime
func (AppsPlayerCheckTop) Group ¶
func (c AppsPlayerCheckTop) Group() TaskGroup
func (AppsPlayerCheckTop) ID ¶
func (c AppsPlayerCheckTop) ID() string
func (AppsPlayerCheckTop) Name ¶
func (c AppsPlayerCheckTop) Name() string
type AppsQueueAll ¶
type AppsQueueAll struct {
BaseTask
}
func (AppsQueueAll) Cron ¶
func (c AppsQueueAll) Cron() TaskTime
func (AppsQueueAll) Group ¶
func (c AppsQueueAll) Group() TaskGroup
func (AppsQueueAll) ID ¶
func (c AppsQueueAll) ID() string
func (AppsQueueAll) Name ¶
func (c AppsQueueAll) Name() string
type AppsQueueElastic ¶
type AppsQueueElastic struct {
BaseTask
}
func (AppsQueueElastic) Cron ¶
func (c AppsQueueElastic) Cron() TaskTime
func (AppsQueueElastic) Group ¶
func (c AppsQueueElastic) Group() TaskGroup
func (AppsQueueElastic) ID ¶
func (c AppsQueueElastic) ID() string
func (AppsQueueElastic) Name ¶
func (c AppsQueueElastic) Name() string
type AppsQueueGroups ¶
type AppsQueueGroups struct {
BaseTask
}
func (AppsQueueGroups) Cron ¶
func (c AppsQueueGroups) Cron() TaskTime
func (AppsQueueGroups) Group ¶
func (c AppsQueueGroups) Group() TaskGroup
func (AppsQueueGroups) ID ¶
func (c AppsQueueGroups) ID() string
func (AppsQueueGroups) Name ¶
func (c AppsQueueGroups) Name() string
type AppsQueueInflux ¶
type AppsQueueInflux struct {
BaseTask
}
func (AppsQueueInflux) Cron ¶
func (c AppsQueueInflux) Cron() TaskTime
func (AppsQueueInflux) Group ¶
func (c AppsQueueInflux) Group() TaskGroup
func (AppsQueueInflux) ID ¶
func (c AppsQueueInflux) ID() string
func (AppsQueueInflux) Name ¶
func (c AppsQueueInflux) Name() string
type AppsQueuePackages ¶
type AppsQueuePackages struct {
BaseTask
}
func (AppsQueuePackages) Cron ¶
func (c AppsQueuePackages) Cron() TaskTime
func (AppsQueuePackages) Group ¶
func (c AppsQueuePackages) Group() TaskGroup
func (AppsQueuePackages) ID ¶
func (c AppsQueuePackages) ID() string
func (AppsQueuePackages) Name ¶
func (c AppsQueuePackages) Name() string
type AppsQueueReviews ¶
type AppsQueueReviews struct {
BaseTask
}
func (AppsQueueReviews) Cron ¶
func (c AppsQueueReviews) Cron() TaskTime
func (AppsQueueReviews) Group ¶
func (c AppsQueueReviews) Group() TaskGroup
func (AppsQueueReviews) ID ¶
func (c AppsQueueReviews) ID() string
func (AppsQueueReviews) Name ¶
func (c AppsQueueReviews) Name() string
type AppsQueueSteamSpy ¶
type AppsQueueSteamSpy struct {
BaseTask
}
func (AppsQueueSteamSpy) Cron ¶
func (c AppsQueueSteamSpy) Cron() TaskTime
func (AppsQueueSteamSpy) Group ¶
func (c AppsQueueSteamSpy) Group() TaskGroup
func (AppsQueueSteamSpy) ID ¶
func (c AppsQueueSteamSpy) ID() string
func (AppsQueueSteamSpy) Name ¶
func (c AppsQueueSteamSpy) Name() string
type AppsQueueWishlists ¶
type AppsQueueWishlists struct {
BaseTask
}
func (AppsQueueWishlists) Cron ¶
func (c AppsQueueWishlists) Cron() TaskTime
func (AppsQueueWishlists) Group ¶
func (c AppsQueueWishlists) Group() TaskGroup
func (AppsQueueWishlists) ID ¶
func (c AppsQueueWishlists) ID() string
func (AppsQueueWishlists) Name ¶
func (c AppsQueueWishlists) Name() string
type AppsQueueYoutube ¶
type AppsQueueYoutube struct {
BaseTask
}
func (AppsQueueYoutube) Cron ¶
func (c AppsQueueYoutube) Cron() TaskTime
func (AppsQueueYoutube) Group ¶
func (c AppsQueueYoutube) Group() TaskGroup
func (AppsQueueYoutube) ID ¶
func (c AppsQueueYoutube) ID() string
func (AppsQueueYoutube) Name ¶
func (c AppsQueueYoutube) Name() string
type AppsSameOwners ¶
type AppsSameOwners struct {
BaseTask
}
func (AppsSameOwners) Cron ¶
func (c AppsSameOwners) Cron() TaskTime
func (AppsSameOwners) Group ¶
func (c AppsSameOwners) Group() TaskGroup
func (AppsSameOwners) ID ¶
func (c AppsSameOwners) ID() string
func (AppsSameOwners) Name ¶
func (c AppsSameOwners) Name() string
type ArticlesLatest ¶
type ArticlesLatest struct {
BaseTask
}
func (ArticlesLatest) Cron ¶
func (c ArticlesLatest) Cron() TaskTime
func (ArticlesLatest) Group ¶
func (c ArticlesLatest) Group() TaskGroup
func (ArticlesLatest) ID ¶
func (c ArticlesLatest) ID() string
func (ArticlesLatest) Name ¶
func (c ArticlesLatest) Name() string
type AutoPlayerRefreshes ¶
type AutoPlayerRefreshes struct {
BaseTask
}
func (AutoPlayerRefreshes) Cron ¶
func (c AutoPlayerRefreshes) Cron() TaskTime
func (AutoPlayerRefreshes) Group ¶
func (c AutoPlayerRefreshes) Group() TaskGroup
func (AutoPlayerRefreshes) ID ¶
func (c AutoPlayerRefreshes) ID() string
func (AutoPlayerRefreshes) Name ¶
func (c AutoPlayerRefreshes) Name() string
type BadgesUpdateRandom ¶
type BadgesUpdateRandom struct {
BaseTask
}
func (BadgesUpdateRandom) Cron ¶
func (c BadgesUpdateRandom) Cron() TaskTime
func (BadgesUpdateRandom) Group ¶
func (c BadgesUpdateRandom) Group() TaskGroup
func (BadgesUpdateRandom) ID ¶
func (c BadgesUpdateRandom) ID() string
func (BadgesUpdateRandom) Name ¶
func (c BadgesUpdateRandom) Name() string
type BundlesQueueAll ¶
type BundlesQueueAll struct {
BaseTask
}
func (BundlesQueueAll) Cron ¶
func (c BundlesQueueAll) Cron() TaskTime
func (BundlesQueueAll) Group ¶
func (c BundlesQueueAll) Group() TaskGroup
func (BundlesQueueAll) ID ¶
func (c BundlesQueueAll) ID() string
func (BundlesQueueAll) Name ¶
func (c BundlesQueueAll) Name() string
type BundlesQueueElastic ¶
type BundlesQueueElastic struct {
BaseTask
}
func (BundlesQueueElastic) Cron ¶
func (c BundlesQueueElastic) Cron() TaskTime
func (BundlesQueueElastic) Group ¶
func (c BundlesQueueElastic) Group() TaskGroup
func (BundlesQueueElastic) ID ¶
func (c BundlesQueueElastic) ID() string
func (BundlesQueueElastic) Name ¶
func (c BundlesQueueElastic) Name() string
type DiscordUpdateGuild ¶
type DiscordUpdateGuild struct {
BaseTask
}
func (DiscordUpdateGuild) Cron ¶
func (c DiscordUpdateGuild) Cron() TaskTime
func (DiscordUpdateGuild) Group ¶
func (c DiscordUpdateGuild) Group() TaskGroup
func (DiscordUpdateGuild) ID ¶
func (c DiscordUpdateGuild) ID() string
func (DiscordUpdateGuild) Name ¶
func (c DiscordUpdateGuild) Name() string
type GlobalSteamStats ¶
type GlobalSteamStats struct {
BaseTask
}
func (GlobalSteamStats) Cron ¶
func (c GlobalSteamStats) Cron() TaskTime
func (GlobalSteamStats) Group ¶
func (c GlobalSteamStats) Group() TaskGroup
func (GlobalSteamStats) ID ¶
func (c GlobalSteamStats) ID() string
func (GlobalSteamStats) Name ¶
func (c GlobalSteamStats) Name() string
type GroupsQueueElastic ¶
type GroupsQueueElastic struct {
BaseTask
}
func (GroupsQueueElastic) Cron ¶
func (c GroupsQueueElastic) Cron() TaskTime
func (GroupsQueueElastic) Group ¶
func (c GroupsQueueElastic) Group() TaskGroup
func (GroupsQueueElastic) ID ¶
func (c GroupsQueueElastic) ID() string
func (GroupsQueueElastic) Name ¶
func (c GroupsQueueElastic) Name() string
type GroupsQueuePrimaries ¶
type GroupsQueuePrimaries struct {
BaseTask
}
func (GroupsQueuePrimaries) Cron ¶
func (c GroupsQueuePrimaries) Cron() TaskTime
func (GroupsQueuePrimaries) Group ¶
func (c GroupsQueuePrimaries) Group() TaskGroup
func (GroupsQueuePrimaries) ID ¶
func (c GroupsQueuePrimaries) ID() string
func (GroupsQueuePrimaries) Name ¶
func (c GroupsQueuePrimaries) Name() string
type GroupsUpdateTop ¶
type GroupsUpdateTop struct {
BaseTask
}
func (GroupsUpdateTop) Cron ¶
func (c GroupsUpdateTop) Cron() TaskTime
func (GroupsUpdateTop) Group ¶
func (c GroupsUpdateTop) Group() TaskGroup
func (GroupsUpdateTop) ID ¶
func (c GroupsUpdateTop) ID() string
func (GroupsUpdateTop) Name ¶
func (c GroupsUpdateTop) Name() string
type InstagramPost ¶
type InstagramPost struct {
BaseTask
}
func (InstagramPost) Cron ¶
func (c InstagramPost) Cron() TaskTime
func (InstagramPost) Group ¶
func (c InstagramPost) Group() TaskGroup
func (InstagramPost) ID ¶
func (c InstagramPost) ID() string
func (InstagramPost) Name ¶
func (c InstagramPost) Name() string
type MemcacheClearAll ¶
type MemcacheClearAll struct {
BaseTask
}
func (MemcacheClearAll) Cron ¶
func (c MemcacheClearAll) Cron() TaskTime
func (MemcacheClearAll) Group ¶
func (c MemcacheClearAll) Group() TaskGroup
func (MemcacheClearAll) ID ¶
func (c MemcacheClearAll) ID() string
func (MemcacheClearAll) Name ¶
func (c MemcacheClearAll) Name() string
type PlayersQueueAll ¶
type PlayersQueueAll struct {
BaseTask
}
func (PlayersQueueAll) Cron ¶
func (c PlayersQueueAll) Cron() TaskTime
func (PlayersQueueAll) Group ¶
func (c PlayersQueueAll) Group() TaskGroup
func (PlayersQueueAll) ID ¶
func (c PlayersQueueAll) ID() string
func (PlayersQueueAll) Name ¶
func (c PlayersQueueAll) Name() string
type PlayersQueueElastic ¶
type PlayersQueueElastic struct {
BaseTask
}
func (PlayersQueueElastic) Cron ¶
func (c PlayersQueueElastic) Cron() TaskTime
func (PlayersQueueElastic) Group ¶
func (c PlayersQueueElastic) Group() TaskGroup
func (PlayersQueueElastic) ID ¶
func (c PlayersQueueElastic) ID() string
func (PlayersQueueElastic) Name ¶
func (c PlayersQueueElastic) Name() string
type PlayersQueueGroups ¶
type PlayersQueueGroups struct {
BaseTask
}
func (PlayersQueueGroups) Cron ¶
func (c PlayersQueueGroups) Cron() TaskTime
func (PlayersQueueGroups) Group ¶
func (c PlayersQueueGroups) Group() TaskGroup
func (PlayersQueueGroups) ID ¶
func (c PlayersQueueGroups) ID() string
func (PlayersQueueGroups) Name ¶
func (c PlayersQueueGroups) Name() string
type PlayersQueueLastUpdated ¶
type PlayersQueueLastUpdated struct {
BaseTask
}
func (PlayersQueueLastUpdated) Cron ¶
func (c PlayersQueueLastUpdated) Cron() TaskTime
func (PlayersQueueLastUpdated) Group ¶
func (c PlayersQueueLastUpdated) Group() TaskGroup
func (PlayersQueueLastUpdated) ID ¶
func (c PlayersQueueLastUpdated) ID() string
func (PlayersQueueLastUpdated) Name ¶
func (c PlayersQueueLastUpdated) Name() string
type PlayersUpdateRanks ¶
type PlayersUpdateRanks struct {
BaseTask
}
func (PlayersUpdateRanks) Cron ¶
func (c PlayersUpdateRanks) Cron() TaskTime
func (PlayersUpdateRanks) Group ¶
func (c PlayersUpdateRanks) Group() TaskGroup
func (PlayersUpdateRanks) ID ¶
func (c PlayersUpdateRanks) ID() string
func (PlayersUpdateRanks) Name ¶
func (c PlayersUpdateRanks) Name() string
type ProductsUpdateKeys ¶
type ProductsUpdateKeys struct {
BaseTask
}
func (ProductsUpdateKeys) Cron ¶
func (c ProductsUpdateKeys) Cron() TaskTime
func (ProductsUpdateKeys) Group ¶
func (c ProductsUpdateKeys) Group() TaskGroup
func (ProductsUpdateKeys) ID ¶
func (c ProductsUpdateKeys) ID() string
func (ProductsUpdateKeys) Name ¶
func (c ProductsUpdateKeys) Name() string
type SteamOnline ¶
type SteamOnline struct {
BaseTask
}
func (SteamOnline) Cron ¶
func (c SteamOnline) Cron() TaskTime
func (SteamOnline) Group ¶
func (c SteamOnline) Group() TaskGroup
func (SteamOnline) ID ¶
func (c SteamOnline) ID() string
func (SteamOnline) Name ¶
func (c SteamOnline) Name() string
type TaskGroup ¶
type TaskGroup string
const ( TaskGroupApps TaskGroup = "apps" TaskGroupBundles TaskGroup = "bundles" TaskGroupGroups TaskGroup = "groups" TaskGroupBadges TaskGroup = "badges" TaskGroupNews TaskGroup = "news" TaskGroupPlayers TaskGroup = "players" TaskGroupPackages TaskGroup = "packages" TaskGroupElastic TaskGroup = "elastic" )
type TaskInterface ¶
type TaskTime ¶
type TaskTime string
const ( CronTimeUpdateLastUpdatedPlayers TaskTime = "* *" CronTimeNewsLatest TaskTime = "* *" CronTimeUpdateDiscordGuild TaskTime = "* *" CronTimeSteamClientPlayers TaskTime = "*/10 *" CronTimeAppPlayers TaskTime = "*/10 *" CronTimeAppPlayersTop TaskTime = "*/10 *" CronTimeAppsSameowners TaskTime = "*/10 *" CronTimeAutoPlayerRefreshes TaskTime = "0 */6" CronTimeGameDBStats TaskTime = "0 */6" CronTimeAppsReviews TaskTime = "0 0" CronTimeAppsYoutube TaskTime = "5 0" CronTimeQueueAppGroups TaskTime = "10 0" CronTimeQueuePlayerGroups TaskTime = "15 0" CronTimeScanProductQueues TaskTime = "20 0" CronTimeSetBadgeCache TaskTime = "25 0" CronTimePlayerRanks TaskTime = "30 0" CronTimeStats TaskTime = "35 0" CronTimeAppsWishlists TaskTime = "40 0" CronTimeAddAppTagsToInflux TaskTime = "45 0" CronTimeAppsInflux TaskTime = "" CronTimeSteamSpy TaskTime = "" CronTimeInstagram TaskTime = "" )
Source Files ¶
- app_player_check.go
- app_player_check_top.go
- apps_achievements_queue_all.go
- apps_achievements_queue_elastic.go
- apps_add_tag_counts_to_influx.go
- apps_articles_queue_elastic.go
- apps_queue_all.go
- apps_queue_elastic.go
- apps_queue_groups.go
- apps_queue_influx.go
- apps_queue_packages.go
- apps_queue_reviews.go
- apps_queue_steamspy.go
- apps_queue_wishlists.go
- apps_queue_youtube.go
- apps_sameowners.go
- articles_latest.go
- badges_update_summaries.go
- bundles_queue_all.go
- bundles_queue_elastic.go
- crons.go
- discord_update_guild.go
- globalsteam_stats.go
- groups_queue_elastic.go
- groups_queue_primaries.go
- groups_update_top.go
- instagram_post.go
- memcache_clear_all.go
- players_queue_all.go
- players_queue_donators.go
- players_queue_elastic.go
- players_queue_groups.go
- players_queue_last_updated.go
- players_update_ranks.go
- products_update_keys.go
- stats.go
- steam_online.go
Click to show internal directories.
Click to hide internal directories.