scheduler

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerService

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

func NewSchedulerService

func NewSchedulerService(cron *cron.Cron) *SchedulerService

func (*SchedulerService) AddFunc

func (s *SchedulerService) AddFunc(cron string, action func()) (cron.EntryID, error)

func (*SchedulerService) RemoveFunc

func (s *SchedulerService) RemoveFunc(id cron.EntryID)

func (*SchedulerService) Run

func (s *SchedulerService) Run()

func (*SchedulerService) RunAsync

func (s *SchedulerService) RunAsync()

func (*SchedulerService) Stop

func (s *SchedulerService) Stop()

Jump to

Keyboard shortcuts

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