scanner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundScan

func BackgroundScan(scanType string, c Conf, cache *cache.Cache)

BackgroundScan allows us to call Scan as a goroutine and still report a status/error.

func GetScanErrors

func GetScanErrors(c Conf) (map[string]time.Time, error)

GetScanErrors retrieves all scan errors from the database

func IsScanInProgress

func IsScanInProgress() bool

IsScanInProgress returns true if a scan is currently in progress

func Scan

func Scan(scanType string, c Conf, cache *cache.Cache) (string, error)

Scan coordinates the addition, updating, and removal of all media items.

func SetScanInProgress

func SetScanInProgress(status bool)

SetScanInProgress sets the scan in progress status

func ThumbScan

func ThumbScan(c Conf) (string, error)

ThumbScan checks all media items for missing thumbnails and generates any missing ones.

func TrackScanError

func TrackScanError(path string, lastScanTime time.Time, error error, c Conf) error

TrackScanError records a file scanning error in the database This allows for later reporting and retry mechanisms

Types

type Conf

type Conf = types.Conf

type Media

type Media = types.Media

type Subject

type Subject = types.Subject

Jump to

Keyboard shortcuts

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