jobs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs interface {
	Info() []task.Info

	Get(id uuid.UUID) (taskInfo task.Info, err error)

	Start(ctx context.Context, id uuid.UUID) (err error)
	Stop(ctx context.Context, id uuid.UUID) (err error)

	Enable(id uuid.UUID) (err error)
	Disable(id uuid.UUID) (err error)

	StartAll(ctx context.Context) (err error)

	Close()
}

func New

func New(
	hub websocket.Hub,
	svcs lifecycle.ServiceLifecycle,
	queue *queue.Queue,
	fs *fs.FileSystem,
	feed feed.Feed,
	cfg configmodels.Jobs,
) Jobs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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