Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WebConfig *WebConfig `yaml:"web"` DBConfig *DBConfig `yaml:"db"` SubscriberConfig *SubscriberConfig `yaml:"subscriber"` }
func ReadConfig ¶
type DBConfig ¶
type DBConfig struct { DSN string `yaml:"dsn"` Driver DriverType `yaml:"driver"` }
type DownloaderConfig ¶
type DownloaderConfig struct { Enable bool `yaml:"enable"` ProxyConfig *ProxyConfig `yaml:"proxy"` BasePath string `yaml:"base_path"` YtDlpLink string `yaml:"yt_dlp_link"` DownloadIntervalSeconds int `yaml:"download_interval_seconds"` }
type DriverType ¶
type DriverType string
const ( MySQLDriver DriverType = "mysql" SQLiteDriver DriverType = "sqlite" )
type FetcherConfig ¶
type FetcherConfig struct { Enable bool `yaml:"enable"` ProxyConfig *ProxyConfig `yaml:"proxy"` FetcheIntervalSeconds int `yaml:"fetch_interval_seconds"` }
type ProxyConfig ¶
type ProxyConfig struct {
Proxies []string `yaml:"proxies"`
}
type SubscriberConfig ¶
type SubscriberConfig struct { FetcherConfig *FetcherConfig `yaml:"fetcher"` DownloaderConfig *DownloaderConfig `yaml:"downloader"` }
Click to show internal directories.
Click to hide internal directories.