scheduler

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 1 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 interface {
	StartTask(schedule string, hours, limit int) (Task, error)
	StopTask(taskID cron.EntryID) error
	ListTasks() ([]Task, error)
}

Scheduler defines the interface for task scheduling operations

type Task

type Task struct {
	ID       cron.EntryID
	Schedule string
	Hours    int
	Limit    int
}

Task represents a scheduled task

Jump to

Keyboard shortcuts

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