schedule

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schedule

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

func NewSchedule

func NewSchedule() *Schedule

func (*Schedule) AddByFunc

func (s *Schedule) AddByFunc(id string, spec string, f func(), init bool) error

AddByFunc 将方法注册到定时调度器 init 是否在注册时调用

func (*Schedule) AddByJob

func (s *Schedule) AddByJob(id string, spec string, cmd cron.Job) error

func (*Schedule) Close

func (s *Schedule) Close()

func (*Schedule) IDs

func (s *Schedule) IDs() []string

func (*Schedule) IsExists

func (s *Schedule) IsExists(jid string) bool

func (*Schedule) Remove

func (s *Schedule) Remove(id string)

func (*Schedule) Start

func (s *Schedule) Start()

Jump to

Keyboard shortcuts

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