Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BgTaskRegistry = []BackgroundTask{}
Functions ¶
func StartAllTasks ¶
func StartAllTasks()
Types ¶
type BackgroundTask ¶
type BackgroundTask interface { // Whether or not the task is enabled Enabled() bool // How often the task should run Duration() time.Duration // Name of the task Name() string // Description of the task Description() string // Function to run the task Run() error }
Inspired from https://github.com/InfinityBotList/Arcadia/blob/main/src/tasks/taskcat.rs
Click to show internal directories.
Click to hide internal directories.