scheduler

package
v0.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 4 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 {
	Ctx            context.Context
	Name           string
	CronExpression string
	Action         func(context.Context) error
}

type Scheduler

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

func MustSetupJobScheduler

func MustSetupJobScheduler() *Scheduler

func (*Scheduler) AddJob

func (s *Scheduler) AddJob(job Job) (uuid.UUID, error)

func (*Scheduler) Shutdown

func (s *Scheduler) Shutdown() error

func (*Scheduler) Start

func (s *Scheduler) Start()

Jump to

Keyboard shortcuts

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