scheduler

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) LastVersion

func (m *Manager) LastVersion() int64

func (*Manager) Reload

func (m *Manager) Reload(cfg *models.Config)

func (*Manager) Start

func (m *Manager) Start(site models.SiteGroup, r models.RSSConfig, runner func(ctx context.Context))

func (*Manager) StartAll

func (m *Manager) StartAll(cfg *models.Config)

StartAll 按配置启动所有任务(不做停止)

func (*Manager) Stop

func (m *Manager) Stop(site models.SiteGroup, rssName string)

func (*Manager) StopAll

func (m *Manager) StopAll()

StopAll 取消所有任务并等待当前执行结束

Jump to

Keyboard shortcuts

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