scanner

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(configGetter config.ConfigGetter, instances *instances.Manager, clients *clients.Manager, data *data.Manager, repo *database.Repository, failureTracker *failures.Tracker) *Manager

func (*Manager) DiscoverFileMetadata added in v0.3.0

func (m *Manager) DiscoverFileMetadata(ctx context.Context, filePath, relativePath, nzbName, libraryPath string) (*model.WebhookMetadata, error)

DiscoverFileMetadata attempts to find the rich metadata for a file by searching ARR instances. This implementation is 100% STRICT and performs zero fuzzy guessing.

func (*Manager) TriggerDownloadScan

func (m *Manager) TriggerDownloadScan(ctx context.Context, instanceType string)

TriggerDownloadScan triggers the "Check For Finished Downloads" task in ARR instances

func (*Manager) TriggerFileRescan

func (m *Manager) TriggerFileRescan(ctx context.Context, pathForRescan string, relativePath string, metadataStr *string) error

TriggerFileRescan triggers a rescan for a specific file path through the appropriate ARR instance

func (*Manager) TriggerScanForFile

func (m *Manager) TriggerScanForFile(ctx context.Context, filePath string) error

TriggerScanForFile finds the ARR instance managing the file and triggers a download scan on it.

Jump to

Keyboard shortcuts

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