keyword

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(bt define.Beater, config define.Config) define.Scheduler

New :

Types

type Scheduler

type Scheduler struct {
	scheduler.BaseScheduler
	// contains filtered or unexported fields
}

func (*Scheduler) Add

func (s *Scheduler) Add(t define.Task)

func (*Scheduler) Count

func (s *Scheduler) Count() int

func (*Scheduler) GetStatus

func (s *Scheduler) GetStatus() define.Status

func (*Scheduler) IsDaemon

func (s *Scheduler) IsDaemon() bool

func (*Scheduler) Reload

func (s *Scheduler) Reload(ctx context.Context, conf define.Config, newTasks []define.Task) error

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context) error

func (*Scheduler) Stop

func (s *Scheduler) Stop()

func (*Scheduler) Wait

func (s *Scheduler) Wait()

Jump to

Keyboard shortcuts

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