scheduler

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheduler

func NewScheduler(lc fx.Lifecycle,
	adaptors *adaptors.Adaptors,
	eventBus bus.Bus) (scheduler.Scheduler, error)

Types

type Scheduler

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

func (*Scheduler) AddFunc

func (c *Scheduler) AddFunc(spec string, cmd func()) (id scheduler.EntryID, err error)

func (*Scheduler) Remove

func (c *Scheduler) Remove(id scheduler.EntryID)

func (*Scheduler) Shutdown

func (c *Scheduler) Shutdown(_ context.Context) error

func (*Scheduler) Start

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

Jump to

Keyboard shortcuts

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