Documentation
¶
Index ¶
- type Config
- type ImportHints
- type Module
- func (m *Module) AddWatchDir(ctx context.Context, req *scannerv1.AddWatchDirRequest) (*scannerv1.AddWatchDirResponse, error)
- func (m *Module) GetStats(ctx context.Context, req *scannerv1.GetStatsRequest) (*scannerv1.GetStatsResponse, error)
- func (m *Module) Health(ctx context.Context) error
- func (m *Module) ImportPath(ctx context.Context, req *scannerv1.ImportPathRequest) (*scannerv1.ImportPathResponse, error)
- func (m *Module) Info() contracts.ModuleInfo
- func (m *Module) Init(ctx context.Context) error
- func (m *Module) ListImportCandidates(ctx context.Context, req *scannerv1.ListImportCandidatesRequest) (*scannerv1.ListImportCandidatesResponse, error)
- func (m *Module) ListImported(ctx context.Context, req *scannerv1.ListImportedRequest) (*scannerv1.ListImportedResponse, error)
- func (m *Module) ListWatchDirs(ctx context.Context, req *scannerv1.ListWatchDirsRequest) (*scannerv1.ListWatchDirsResponse, error)
- func (m *Module) RemoveWatchDir(ctx context.Context, req *scannerv1.RemoveWatchDirRequest) (*scannerv1.RemoveWatchDirResponse, error)
- func (m *Module) Scan(ctx context.Context, req *scannerv1.ScanRequest) (*scannerv1.ScanResponse, error)
- func (m *Module) ScanLibraryRoots(ctx context.Context, req *scannerv1.ScanLibraryRootsRequest) (*scannerv1.ScanLibraryRootsResponse, error)
- func (m *Module) SetWatchDirEnabled(ctx context.Context, req *scannerv1.SetWatchDirEnabledRequest) (*scannerv1.SetWatchDirEnabledResponse, error)
- func (m *Module) Settings() []contracts.SettingDef
- func (m *Module) Start(ctx context.Context) error
- func (m *Module) Stop(ctx context.Context) error
- func (m *Module) UpdateSetting(key, value string) error
- func (m *Module) UpdateWatchDir(ctx context.Context, req *scannerv1.UpdateWatchDirRequest) (*scannerv1.UpdateWatchDirResponse, error)
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
ImportHints carries acquisition metadata that filename parsing may miss.
type Module ¶
type Module struct {
scannerv1.UnimplementedScannerServiceServer
// contains filtered or unexported fields
}
func (*Module) AddWatchDir ¶
func (m *Module) AddWatchDir(ctx context.Context, req *scannerv1.AddWatchDirRequest) (*scannerv1.AddWatchDirResponse, error)
func (*Module) GetStats ¶
func (m *Module) GetStats(ctx context.Context, req *scannerv1.GetStatsRequest) (*scannerv1.GetStatsResponse, error)
func (*Module) ImportPath ¶
func (m *Module) ImportPath(ctx context.Context, req *scannerv1.ImportPathRequest) (*scannerv1.ImportPathResponse, error)
func (*Module) Info ¶
func (m *Module) Info() contracts.ModuleInfo
func (*Module) ListImportCandidates ¶ added in v0.1.27
func (m *Module) ListImportCandidates(ctx context.Context, req *scannerv1.ListImportCandidatesRequest) (*scannerv1.ListImportCandidatesResponse, error)
func (*Module) ListImported ¶
func (m *Module) ListImported(ctx context.Context, req *scannerv1.ListImportedRequest) (*scannerv1.ListImportedResponse, error)
func (*Module) ListWatchDirs ¶
func (m *Module) ListWatchDirs(ctx context.Context, req *scannerv1.ListWatchDirsRequest) (*scannerv1.ListWatchDirsResponse, error)
func (*Module) RemoveWatchDir ¶
func (m *Module) RemoveWatchDir(ctx context.Context, req *scannerv1.RemoveWatchDirRequest) (*scannerv1.RemoveWatchDirResponse, error)
func (*Module) Scan ¶
func (m *Module) Scan(ctx context.Context, req *scannerv1.ScanRequest) (*scannerv1.ScanResponse, error)
func (*Module) ScanLibraryRoots ¶
func (m *Module) ScanLibraryRoots(ctx context.Context, req *scannerv1.ScanLibraryRootsRequest) (*scannerv1.ScanLibraryRootsResponse, error)
func (*Module) SetWatchDirEnabled ¶ added in v0.1.27
func (m *Module) SetWatchDirEnabled(ctx context.Context, req *scannerv1.SetWatchDirEnabledRequest) (*scannerv1.SetWatchDirEnabledResponse, error)
func (*Module) Settings ¶ added in v0.1.8
func (m *Module) Settings() []contracts.SettingDef
func (*Module) UpdateSetting ¶ added in v0.1.8
func (*Module) UpdateWatchDir ¶ added in v0.1.27
func (m *Module) UpdateWatchDir(ctx context.Context, req *scannerv1.UpdateWatchDirRequest) (*scannerv1.UpdateWatchDirResponse, error)
Click to show internal directories.
Click to hide internal directories.