timing_task

package
v0.2.87 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuiltInTasks = []TimingTask{
	{
		Id:         1,
		Name:       "CheckUpdate",
		Spec:       "0 4 * * *",
		RunOnStart: false,
		Enabled:    false,
	},
	{
		Id:         2,
		Name:       "update_yunzai_and_plugins",
		Spec:       "0 4 * * *",
		RunOnStart: false,
		Enabled:    false,
	},
	{
		Id:         3,
		Name:       "download_announcement",
		Spec:       "@yearly",
		RunOnStart: true,
		Enabled:    true,
	},
}

Functions

This section is empty.

Types

type TimingTask

type TimingTask struct {
	Id         int    `json:"id"`
	Name       string `json:"name"`
	Spec       string `json:"spec"`
	RunOnStart bool   `json:"run_on_start"`
	Enabled    bool   `json:"enabled"`
}

Jump to

Keyboard shortcuts

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