scheduler

package
v3.0.0-rc15 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	CreatedAt time.Time
	LastRunAt time.Time
	// contains filtered or unexported fields
}

Job is a schedule entries with alarms set.

func (Job) Cancel

func (t Job) Cancel()

type Jobs

type Jobs map[string]Job

Jobs is a map of Job

func (Jobs) Add

func (t Jobs) Add(e schedule.Entry, delay time.Duration, bus chan any)

func (Jobs) Del

func (t Jobs) Del(e schedule.Entry)

func (Jobs) DelId

func (t Jobs) DelId(jobId string)

func (Jobs) DelPath

func (t Jobs) DelPath(p naming.Path)

func (Jobs) Done

func (t Jobs) Done(e schedule.Entry) Job

func (Jobs) Get

func (t Jobs) Get(e schedule.Entry) (Job, bool)

func (Jobs) Has

func (t Jobs) Has(e schedule.Entry) bool

func (Jobs) PathIds

func (t Jobs) PathIds(path naming.Path) []string

func (Jobs) Purge

func (t Jobs) Purge()

func (Jobs) Table

func (t Jobs) Table(path naming.Path) schedule.Table

type Schedules

type Schedules map[naming.Path]map[string]schedule.Entry

func (Schedules) Add

func (t Schedules) Add(path naming.Path, e schedule.Entry)

func (Schedules) Del

func (t Schedules) Del(path naming.Path, key string)

func (Schedules) DelPath

func (t Schedules) DelPath(path naming.Path)

func (Schedules) Get

func (t Schedules) Get(path naming.Path, k string) (schedule.Entry, bool)

func (Schedules) Table

func (t Schedules) Table(path naming.Path) (l schedule.Table)

type T

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

func New

func New(subQS pubsub.QueueSizer, opts ...funcopt.O) *T

func (*T) Start

func (t *T) Start(ctx context.Context) error

func (*T) Stop

func (t *T) Stop() error

Jump to

Keyboard shortcuts

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