Help us shape the future of Go! Take the 2026 Go Developer Survey

manager

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 11 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 {
	Purge               bool
	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]
	DB  lazy.Lazy[*gorm.DB]
}

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