task

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CDN1               = "https://ghproxy.com/"
	ArchiveReleaseBase = "https://github.com/wetor/AnimeGoData/releases/download/archive/"
	Subject            = "bolt_sub.zip"
	SubjectDB          = "bolt_sub.db"

	Cron              = "0 0 12 * * 3" // 每周三12点
	MaxModifyTimeHour = 12             // 首次启动时,是否执行任务的最长修改时间
	MinFileSizeKB     = 512            // 首次启动时,是否执行任务的最小文件大小
)

Variables

Functions

This section is empty.

Types

type BangumiOptions added in v0.7.1

type BangumiOptions struct {
	Cache      api.CacheOpener
	CacheMutex *sync.Mutex
}

type BangumiTask

type BangumiTask struct {
	// contains filtered or unexported fields
}

func NewBangumiTask

func NewBangumiTask(opts *BangumiOptions) *BangumiTask

func (*BangumiTask) Cron

func (t *BangumiTask) Cron() string

func (*BangumiTask) Name

func (t *BangumiTask) Name() string

func (*BangumiTask) NextTime

func (t *BangumiTask) NextTime() time.Time

func (*BangumiTask) Run

func (t *BangumiTask) Run(params ...interface{})

Run

@Description:
@receiver *BangumiTask
@param opts ...interface{}
  opts[0] bool 是否启动时执行

type PluginOptions added in v0.7.1

type PluginOptions struct {
	*models.Plugin
	Cron string
}

type PluginTask added in v0.7.1

type PluginTask struct {
	// contains filtered or unexported fields
}

func NewPluginTask added in v0.7.1

func NewPluginTask(opts *PluginOptions) *PluginTask

func (*PluginTask) Cron added in v0.7.1

func (t *PluginTask) Cron() string

func (*PluginTask) Name added in v0.7.1

func (t *PluginTask) Name() string

func (*PluginTask) NextTime added in v0.7.1

func (t *PluginTask) NextTime() time.Time

func (*PluginTask) Run added in v0.7.1

func (t *PluginTask) Run(params ...interface{})

Jump to

Keyboard shortcuts

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