Documentation
¶
Overview ¶
Package clisearch implements CLI subtitle search, resolution, and download.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Cfg api.ConfigProvider
Registry ProviderLoader
Store DownloadRecorder // nil = downloads not recorded
ProviderTimeout time.Duration // per-provider timeout; zero = defaultProviderTimeout
}
Deps holds the external dependencies needed by RunSearch.
type DownloadRecorder ¶
type DownloadRecorder interface {
SaveDownload(ctx context.Context, rec *api.DownloadRecord) error
SetSyncOffset(ctx context.Context, path string, offsetMs int64) error
}
DownloadRecorder persists download records and their applied sync offsets. Satisfied by *boltstore.DB.
type ProviderLoader ¶
type ProviderLoader interface {
LoadAll(ctx context.Context, providers map[api.ProviderID]api.ProviderCfg) ([]api.Provider, error)
}
ProviderLoader is the narrow interface for loading providers from config. Satisfied by *provider.Registry via structural typing.
Click to show internal directories.
Click to hide internal directories.