Help us shape the future of Go! Take the 2026 Go Developer Survey

scheduler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func New

func New(store Store, logger *slog.Logger, idle time.Duration) *Scheduler

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context) error

type Store

type Store interface {
	Sync(ctx context.Context, first func(models.Schedule) (time.Time, error)) error
	ProcessDue(ctx context.Context, fire func(context.Context, models.Schedule) (models.Firing, error)) (bool, error)
}

Jump to

Keyboard shortcuts

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