Documentation
¶
Index ¶
- Constants
- func BrowseDirectory(req api.BrowseDirectoryRequest, fallbackPath string) (api.BrowseDirectoryResponse, error)
- func BrowseDirectoryFallback(dbPath string) string
- func BrowseDirectoryWithinRoot(req api.BrowseDirectoryRequest, fallbackPath string, rootPath string) (api.BrowseDirectoryResponse, error)
- func BrowseDirectoryWithinRoots(req api.BrowseDirectoryRequest, fallbackPath string, rootPaths []string) (api.BrowseDirectoryResponse, error)
- func CurrentApplicationInfo(ctx context.Context, provider api.DVDMenuCapabilityProvider) api.ApplicationInfo
- func SeedRunCorePreparedMeta(ctx context.Context, source api.Core, target api.Core, req api.Request) error
- func ValidateBrowseSelection(path string, wantDir bool) error
- type PreparedMetaExporter
- type PreparedMetaImporter
- type Runtime
Constants ¶
View Source
const ( // DVDMenuCapabilityAvailable reports compatible FFmpeg dvdvideo support. DVDMenuCapabilityAvailable = "available" // DVDMenuCapabilityIncompatible reports FFmpeg without required dvdvideo support. DVDMenuCapabilityIncompatible = "incompatible" DVDMenuCapabilityUnavailable = "unavailable" )
Variables ¶
This section is empty.
Functions ¶
func BrowseDirectory ¶
func BrowseDirectory(req api.BrowseDirectoryRequest, fallbackPath string) (api.BrowseDirectoryResponse, error)
func BrowseDirectoryFallback ¶
func BrowseDirectoryWithinRoot ¶
func BrowseDirectoryWithinRoot(req api.BrowseDirectoryRequest, fallbackPath string, rootPath string) (api.BrowseDirectoryResponse, error)
func BrowseDirectoryWithinRoots ¶
func BrowseDirectoryWithinRoots(req api.BrowseDirectoryRequest, fallbackPath string, rootPaths []string) (api.BrowseDirectoryResponse, error)
func CurrentApplicationInfo ¶ added in v0.2.4
func CurrentApplicationInfo(ctx context.Context, provider api.DVDMenuCapabilityProvider) api.ApplicationInfo
CurrentApplicationInfo adds path-free DVD menu capability diagnostics to the shared application build/runtime information. It bounds the probe to ten seconds and returns unavailable status when ctx or provider is nil.
func SeedRunCorePreparedMeta ¶
func ValidateBrowseSelection ¶
Types ¶
type PreparedMetaExporter ¶
type PreparedMetaImporter ¶
type Runtime ¶
Runtime bundles the logger and core service built from a config snapshot. Both the GUI App and the web Backend reload their runtime when the user edits settings; this helper keeps the build-and-swap pattern in one place.
func BuildRuntime ¶
func BuildRuntime(ctx context.Context, cfg config.Config, repo *db.SQLiteRepository) (Runtime, error)
BuildRuntime constructs a fresh logger and core service for cfg using the existing app/backend context and shared repository. On failure any partially initialized resources are cleaned up before returning.
Click to show internal directories.
Click to hide internal directories.