core_scheduler

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

return new core scheduler

Types

type CoreSchedulerImpl

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

Scheduler struct

func (*CoreSchedulerImpl) AddFunc

func (cs *CoreSchedulerImpl) AddFunc(name, spec string, targetFunc func()) error

adds a function to scheduler

func (*CoreSchedulerImpl) Close

func (cs *CoreSchedulerImpl) Close() error

Close scheduler

func (*CoreSchedulerImpl) IsAvailable

func (cs *CoreSchedulerImpl) IsAvailable(scheduleID string) bool

returns the true/false based on the scheduleID availability

func (*CoreSchedulerImpl) ListNames

func (cs *CoreSchedulerImpl) ListNames() []string

returns list of available schedule names

func (*CoreSchedulerImpl) Name

func (cs *CoreSchedulerImpl) Name() string

func (*CoreSchedulerImpl) RemoveFunc

func (cs *CoreSchedulerImpl) RemoveFunc(name string)

removes a function from scheduler

func (*CoreSchedulerImpl) RemoveWithPrefix

func (cs *CoreSchedulerImpl) RemoveWithPrefix(prefix string)

removes all the schedule with the specified prefix

func (*CoreSchedulerImpl) Start

func (cs *CoreSchedulerImpl) Start() error

starts the core scheduler

Jump to

Keyboard shortcuts

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