scheduler

package
v0.0.0-...-b234b5e Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDirectory  string        `toml:"base_directory"`
	Files          []string      `toml:"files"`
	NotifyWindow   time.Duration `toml:"notify_window_in_sec"`
	SchedulePeriod time.Duration `toml:"schedule_period_in_sec"`
}

type Scheduler

type Scheduler interface {
	Start(ctx context.Context) error
}

func NewScheduler

func NewScheduler(cfg Config, backends []notify.Backend) Scheduler

Jump to

Keyboard shortcuts

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