job

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job added in v0.2.0

type Job interface {
	Start()
	Stop()
}

Job interface

type Scheduler

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

Scheduler is a job scheduler

func NewScheduler added in v0.2.0

func NewScheduler(jobs ...Job) *Scheduler

NewScheduler create new job scheduler

func (*Scheduler) Add added in v0.2.0

func (s *Scheduler) Add(job Job)

Add and start job

func (*Scheduler) Shutdown

func (s *Scheduler) Shutdown()

Shutdown job scheduler

Jump to

Keyboard shortcuts

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