scheduler

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 31 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
}

func (Job) Cancel

func (t Job) Cancel()

type Jobs

type Jobs map[string]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) 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) 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) DelByPath

func (t Schedules) DelByPath(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