Versions in this module Expand all Collapse all v0 v0.0.2 Aug 26, 2024 v0.0.1 Aug 26, 2024 Changes in this version + type App struct + func NewApp() *App + func (app *App) AddDownloadTasks(taskMaps []taskMap) bool + func (app *App) DisablePlugin(p *plugin.Plugin) *plugin.Plugin + func (app *App) DownloadPlugin(p *plugin.Plugin) *plugin.Plugin + func (app *App) EnablePlugin(p *plugin.Plugin) (*plugin.Plugin, string) + func (app *App) GetConfig() *config.Config + func (app *App) GetPlugins() map[string]*plugin.Plugin + func (app *App) OpenExplorer(dir string) error + func (app *App) OpenFileWithSystemPlayer(filePath string) error + func (app *App) ParsePlaylist(ids []string) *pb.ParseResponse + func (app *App) RemoveAllTask(parts []Part) bool + func (app *App) RemoveTask(uid string) bool + func (app *App) RunPlugin(p *plugin.Plugin) *plugin.Plugin + func (app *App) SaveConfig(config *config.Config) bool + func (app *App) SavePluginConfig(id string, pluginConfig *config.PluginConfig) (*plugin.Plugin, error) + func (app *App) SetDownloadDir(title string) string + func (app *App) ShowDownloadInfo(link string) *pb.InfoResponse + func (app *App) Shutdown(ctx context.Context) + func (app *App) Startup(ctx context.Context) + func (app *App) StopPlugin(p *plugin.Plugin) *plugin.Plugin + func (app *App) TaskParts() []Part + func (app *App) UpdatePlugin(p *plugin.Plugin) *plugin.Plugin + func (app *App) UpdatePluginsConfig(id string, pluginConfig *config.PluginConfig) *App + func (app *App) UpdateSystemConfig(systemConfig *models.SystemConfig) *App + type AppInfo struct + AssetsDir string + ConfigDir string + LogDir string + PluginsDir string + func NewAppInfo() AppInfo + type Cache struct + func NewCache() *Cache + func (c *Cache) AddTask(id string, info *pb.Task) + func (c *Cache) AddTasks(tasks []*pb.Task) + func (c *Cache) ClearTasks() + func (c *Cache) DeleteTask(id string) + func (c *Cache) Downloader() *plugin.Plugin + func (c *Cache) SetDownloader(p *plugin.Plugin) + func (c *Cache) Task(id string) (*pb.Task, bool) + func (c *Cache) Tasks(ids []string) ([]*pb.Task, error) + type MessageData struct + Message string + MessageType string + type Part struct + Audio StreamQuality + Author string + CreatedAt time.Time + Description string + DownloadDir string + DownloadPercent int + DownloadSpeed string + Duration int + Height int + Index int + MagicName string + Path string + PubDate time.Time + Size int + State string + Status string + Subtitle string + TaskID string + Thumbnail string + Title string + URL string + Video StreamQuality + Width int + WorkDirName string + type StreamQuality struct + IDtag int + Label string