scheduler

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryID added in v0.7.3

type EntryID int

type Scheduler

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

func NewScheduler

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

func (*Scheduler) AddFunc added in v0.7.3

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

func (*Scheduler) Remove added in v0.7.3

func (c *Scheduler) Remove(id 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