task

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTasks

func StartTasks()

func StopTasks

func StopTasks()

Types

type RssUpdateObserver

type RssUpdateObserver interface {
	// contains filtered or unexported methods
}

RssUpdateObserver Rss update observer

type RssUpdateTask

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

RssUpdateTask rss更新任务

func NewRssTask

func NewRssTask() *RssUpdateTask

NewRssTask new RssUpdateTask

func (*RssUpdateTask) Deregister

func (t *RssUpdateTask) Deregister(removeObserver RssUpdateObserver)

Register 注销rss更新订阅者

func (*RssUpdateTask) Name

func (t *RssUpdateTask) Name() string

Name 任务名称

func (*RssUpdateTask) Register

func (t *RssUpdateTask) Register(observer RssUpdateObserver)

Register 注册rss更新订阅者

func (*RssUpdateTask) Start

func (t *RssUpdateTask) Start()

Start run task

func (*RssUpdateTask) Stop

func (t *RssUpdateTask) Stop()

Stop stop task

type Task

type Task interface {
	Start()
	Stop()
	Name() string
}

Jump to

Keyboard shortcuts

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