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 ¶
View Source
var SecondParser = cron.NewParser(cron.Second | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)
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 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{})
Click to show internal directories.
Click to hide internal directories.