Versions in this module Expand all Collapse all v0 v0.2.3 Apr 17, 2026 Changes in this version + func ExistingCookiePathOrDefault() string + func FindConfigFile() (string, bool) + func Load(cliParams CLIParams) (*Config, *ConfigSource, error) + func LoadLegacyCookies() (string, string, error) + func LoadLegacyRSS() (map[string][]RssConfig, error) + func LoadLegacySites() (map[string]SiteConfig, error) + func LoadRSSFromPath(path string) (map[string][]RssConfig, error) + func LoadWithOptions(cliParams CLIParams, options LoadOptions) (*Config, *ConfigSource, error) + func ResolveCookiesFile(cookiesFile string, tomlPath string) string + func ResolveDatabasePath(dbPath string, tomlPath string) string + func TransformTOMLRSS(tomlRSS []TOMLRSSConfig) map[string][]RssConfig + func TransformTOMLSites(tomlSites map[string]TOMLSiteConfig) map[string]SiteConfig + type AuthConfig struct + Cookies string + type CLIParams struct + ChunkDelay int + ChunkDelaySet bool + ChunkSize int + ChunkSizeSet bool + Cookies string + CooldownMaxMs int + CooldownMaxMsSet bool + CooldownMinMs int + CooldownMinMsSet bool + DisableCache bool + DisableCacheSet bool + Port int + PortSet bool + RSSPath string + type Config struct + Auth AuthConfig + Database DatabaseConfig + P115 P115Config + Proxy ProxyConfig + RSS map[string][]RssConfig + Server ServerConfig + Sites map[string]SiteConfig + func Resolve(cli CLIParams, toml *TOMLConfig, tomlPath string, legacy *LegacyConfig) *Config + type ConfigSource struct + CookiesPath string + TOMLPath string + type DatabaseConfig struct + Path string + type LegacyConfig struct + Cookies string + CookiesPath string + RSS map[string][]RssConfig + Sites map[string]SiteConfig + type LoadOptions struct + Auth bool + RSS bool + Sites bool + func LoadAllOptions() LoadOptions + type P115Config struct + ChunkDelay int + ChunkSize int + CooldownMaxMs int + CooldownMinMs int + DisableCache bool + func (c *P115Config) ToP115Option() P115Option + type P115Option struct + ChunkDelay int + ChunkSize int + CooldownMaxMs int + CooldownMinMs int + DisableCache bool + type ProxyConfig struct + HTTP string + type RssConfig struct + Cid string + Expiration uint + Filter string + Name string + SavePath string + Url string + type ServerConfig struct + Port int + type SiteConfig struct + Headers map[string]string + HttpsAgent string + type TOMLAuthConfig struct + Cookies string + CookiesFile string + type TOMLConfig struct + Auth TOMLAuthConfig + Database TOMLDatabaseConfig + P115 TOMLP115Config + Proxy TOMLProxyConfig + RSS []TOMLRSSConfig + Server TOMLServerConfig + Sites map[string]TOMLSiteConfig + func LoadTOML(path string) (*TOMLConfig, error) + type TOMLDatabaseConfig struct + Path string + type TOMLP115Config struct + ChunkDelay int + ChunkSize int + CooldownMaxMs int + CooldownMinMs int + DisableCache bool + type TOMLProxyConfig struct + HTTP string + type TOMLRSSConfig struct + Cid string + Expiration uint + Filter string + Name string + SavePath string + Site string + URL string + type TOMLServerConfig struct + Port int + type TOMLSiteConfig struct + HTTPSAgent bool + Headers map[string]string