manager

package
v0.10.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnqueueReprocessTorrentsBatchRequest

type EnqueueReprocessTorrentsBatchRequest struct {
	BatchSize           uint
	ChunkSize           uint
	ContentTypes        []model.NullContentType
	Orphans             bool
	ClassifyMode        processor.ClassifyMode
	ClassifierWorkflow  string
	ClassifierFlags     classifier.Flags
	ApisDisabled        bool
	LocalSearchDisabled bool
}

type Manager

type Manager interface {
	PurgeJobs(context.Context, PurgeJobsRequest) error
	EnqueueReprocessTorrentsBatch(context.Context, EnqueueReprocessTorrentsBatchRequest) error
}

type Params

type Params struct {
	fx.In
	Dao lazy.Lazy[*dao.Query]
}

type PurgeJobsRequest

type PurgeJobsRequest struct {
	Queues   []string
	Statuses []model.QueueJobStatus
}

type Result

type Result struct {
	fx.Out
	Manager lazy.Lazy[Manager]
}

func New

func New(params Params) Result

Jump to

Keyboard shortcuts

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