scheduler

package
v0.0.0-...-ecc908a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 6 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() *Scheduler

func (*Scheduler) Configure

func (s *Scheduler) Configure() error

func (*Scheduler) RepeatTaskEvery

func (s *Scheduler) RepeatTaskEvery(
	ctx context.Context,
	fn func(),
	t time.Duration,
) error

func (*Scheduler) Shutdown

func (s *Scheduler) Shutdown() error

func (*Scheduler) Start

func (s *Scheduler) Start() error

func (*Scheduler) StartAt

func (s *Scheduler) StartAt(
	ctx context.Context,
	fn func(),
	t time.Duration,
) error

func (*Scheduler) StopJobs

func (s *Scheduler) StopJobs() error

Jump to

Keyboard shortcuts

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