internal

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID               string
	DBPath           string
	GRPCAddr         string
	LibraryRoot      string
	TVLibraryRoot    string
	MusicLibraryRoot string
	DefaultWatchDir  string
	ImportMode       string
	SampleMaxBytes   int64
	MinVideoBytes    int64
	DebounceWait     time.Duration
	SafetyRescan     time.Duration
	InitialScanDelay time.Duration
	UseMeshStorage   bool
	// AllowedRoots extends the directories watch/library paths may resolve
	// inside (also SCANNER_ALLOWED_ROOTS, path-list separated).
	AllowedRoots []string
}

type ImportHints added in v0.1.27

type ImportHints struct {
	TmdbID        int
	Title         string
	Year          int
	SeasonNumber  int
	EpisodeNumber int
}

ImportHints carries acquisition metadata that filename parsing may miss.

type Module

type Module struct {
	scannerv1.UnimplementedScannerServiceServer
	// contains filtered or unexported fields
}

func NewModule

func NewModule(cfg Config) *Module

func (*Module) AddWatchDir

func (*Module) GetStats

func (*Module) Health

func (m *Module) Health(ctx context.Context) error

func (*Module) ImportPath

func (*Module) Info

func (m *Module) Info() contracts.ModuleInfo

func (*Module) Init

func (m *Module) Init(ctx context.Context) error

func (*Module) ListImportCandidates added in v0.1.27

func (*Module) ListImported

func (*Module) Scan

func (*Module) SetWatchDirEnabled added in v0.1.27

func (*Module) Settings added in v0.1.8

func (m *Module) Settings() []contracts.SettingDef

func (*Module) Start

func (m *Module) Start(ctx context.Context) error

func (*Module) Stop

func (m *Module) Stop(ctx context.Context) error

func (*Module) UpdateSetting added in v0.1.8

func (m *Module) UpdateSetting(key, value string) error

func (*Module) UpdateWatchDir added in v0.1.27

Jump to

Keyboard shortcuts

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