core_scheduler

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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