Versions in this module Expand all Collapse all v1 v1.9.0 Sep 17, 2020 v1.8.2 May 20, 2020 v1.8.1 May 14, 2020 v1.8.0 May 14, 2020 v1.7.4 Mar 9, 2020 v1.7.3 Jan 23, 2020 v1.7.2 Jan 11, 2020 v1.7.1 Jan 10, 2020 v1.7.0 Jan 10, 2020 Changes in this version + type Account struct + Disabled bool + ID int + Module string + Password string + Username string + type Cookie struct + Disabled bool + Expiration sql.NullTime + ID int + Module string + Name string + Value string + func (c *Cookie) GetDisplayExpirationDate() string + type DatabaseInterface interface + ChangeTrackedItemCompleteStatus func(trackedItem *TrackedItem, complete bool) + CreateAccount func(user string, password string, module ModuleInterface) + CreateCookie func(name string, value string, expiration sql.NullTime, module ModuleInterface) + CreateOAuthClient func(id string, secret string, accessToken string, refreshToken string, ...) + CreateTrackedItem func(uri string, module ModuleInterface) + GetAccount func(module ModuleInterface) *Account + GetAllCookies func(module ModuleInterface) (cookies []*Cookie) + GetCookie func(name string, module ModuleInterface) *Cookie + GetFirstOrCreateAccount func(user string, password string, module ModuleInterface) *Account + GetFirstOrCreateCookie func(name string, value string, expirationString string, module ModuleInterface) *Cookie + GetFirstOrCreateOAuthClient func(id string, secret string, accessToken string, refreshToken string, ...) *OAuthClient + GetFirstOrCreateTrackedItem func(uri string, module ModuleInterface) *TrackedItem + GetOAuthClient func(module ModuleInterface) *OAuthClient + GetTrackedItems func(module ModuleInterface, includeCompleted bool) []*TrackedItem + UpdateCookie func(name string, value string, expirationString string, module ModuleInterface) + UpdateCookieDisabledStatus func(name string, disabled bool, module ModuleInterface) + UpdateTrackedItem func(trackedItem *TrackedItem, currentItem string) + type DownloadQueueItem struct + DownloadTag string + FileName string + FileURI string + ItemID string + type Module struct + DbIO DatabaseInterface + Key string + LoggedIn bool + ProxyLoopIndex int + RequiresLogin bool + Session http.SessionInterface + TriedLogin bool + URISchemas []*regexp.Regexp + func (t *Module) AddProxyCommands(command *cobra.Command) + func (t *Module) AddProxyLoopCommands(command *cobra.Command) + func (t *Module) GetFileExtension(uri string) string + func (t *Module) GetFileName(uri string) string + func (t *Module) GetProxySettings() (proxySettings *http.ProxySettings) + func (t *Module) GetViperModuleKey() string + func (t *Module) ModuleKey() string + func (t *Module) ProcessDownloadQueue(downloadQueue []DownloadQueueItem, trackedItem *TrackedItem) error + func (t *Module) RegisterURISchema(uriSchemas map[string][]*regexp.Regexp) + func (t *Module) ReverseDownloadQueueItems(downloadQueue []DownloadQueueItem) []DownloadQueueItem + func (t *Module) SetDbIO(io DatabaseInterface) + func (t Module) SanitizePath(path string, allowSeparator bool) string + type ModuleInterface interface + AddSettingsCommand func(command *cobra.Command) + InitializeModule func() + Login func(account *Account) (success bool) + ModuleKey func() string + Parse func(item *TrackedItem) error + type OAuthClient struct + AccessToken string + ClientID string + ClientSecret string + Disabled bool + ID int + Module string + RefreshToken string + func (c *OAuthClient) GetClient(authURL string, tokenURL string, scopes []string) *http.Client + type ProxyLoopConfiguration struct + Loop bool + LoopProxies []http.ProxySettings + Proxy http.ProxySettings + type TrackedItem struct + Complete bool + CurrentItem string + ID int + Module string + URI string