job

package
v0.0.0-...-2d56da1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: AGPL-3.0 Imports: 1 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 interface {
	Run()
}

Job defines a task that the Scheduler can run at intervals.

type Scheduler

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

Scheduler handles automatic ticket creation and resolution.

func NewScheduler

func NewScheduler(tick time.Duration, job ...Job) *Scheduler

NewScheduler returns a new Scheduler instance.

func (*Scheduler) Run

func (s *Scheduler) Run()

Run starts the scheduler and listens for events.

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop stops the Scheduler and shuts it down.

Jump to

Keyboard shortcuts

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