scheduler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 5 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
}

Scheduler manages the execution of jobs triggered by tickers. Not externally configurable at runtime.

func PrepareScheduler

func PrepareScheduler(db *sql.DB) *Scheduler

PrepareScheduler returns a ready-to-run Scheduler

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context)

Start the scheduler jobs at the defined intervals

Jump to

Keyboard shortcuts

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