Documentation
¶
Index ¶
- 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 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 ¶
This section is empty.
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 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.