crons

package
v0.0.0-...-a97d171 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

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 (AppsAchievementsQueueAll) Group

func (AppsAchievementsQueueAll) ID

func (AppsAchievementsQueueAll) Name

type AppsAchievementsQueueElastic

type AppsAchievementsQueueElastic struct {
	BaseTask
}

func (AppsAchievementsQueueElastic) Cron

func (AppsAchievementsQueueElastic) Group

func (AppsAchievementsQueueElastic) ID

func (AppsAchievementsQueueElastic) Name

type AppsAddTagCountsToInflux

type AppsAddTagCountsToInflux struct {
	BaseTask
}

func (AppsAddTagCountsToInflux) Cron

func (AppsAddTagCountsToInflux) Group

func (AppsAddTagCountsToInflux) ID

func (AppsAddTagCountsToInflux) Name

type AppsArticlesQueueElastic

type AppsArticlesQueueElastic struct {
	BaseTask
}

func (AppsArticlesQueueElastic) Cron

func (AppsArticlesQueueElastic) Group

func (AppsArticlesQueueElastic) ID

func (AppsArticlesQueueElastic) Name

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 BaseTask

type BaseTask struct {
}

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 (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 (PlayersQueueLastUpdated) Group

func (PlayersQueueLastUpdated) ID

func (PlayersQueueLastUpdated) Name

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 StatsTask

type StatsTask struct {
	BaseTask
}

func (StatsTask) Cron

func (c StatsTask) Cron() TaskTime

func (StatsTask) Group

func (c StatsTask) Group() TaskGroup

func (StatsTask) ID

func (c StatsTask) ID() string

func (StatsTask) Name

func (c StatsTask) 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 TaskError

type TaskError struct {
	Err  error
	Okay bool
}

func (TaskError) Error

func (te TaskError) Error() 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 TaskInterface interface {
	ID() string
	Name() string
	Group() TaskGroup
	Cron() TaskTime
	// contains filtered or unexported methods
}

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 = ""
)

Directories

Path Synopsis
helpers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL