Configuration struct for centralized application settings
This struct manages all configuration options with validation and
default values. Configuration can be provided via environment variables
or CLI options.
Constructors
new
Initializes configuration from environment variables with defaults
SourceInstance methods
cache_dir
Directory for storing cached feed data
Sourcecache_dir=(cache_dir :
String)
Directory for storing cached feed data
Sourcecache_duration_minutes
How long to cache feed data in minutes
Sourcecache_duration_minutes=(cache_duration_minutes :
Int32)
How long to cache feed data in minutes
Sourcelog_level=(log_level : LogLevel)
Sourcesummary_length
Maximum length of summary text for display
Sourcesummary_length=(summary_length :
Int32)
Maximum length of summary text for display
Sourcetitle
Title displayed in the header and feeds
SourceTitle displayed in the header and feeds
Sourceurls_file
Path to file containing feed URLs (one per line)
Sourceurls_file=(urls_file :
String)
Path to file containing feed URLs (one per line)
Sourcevalidate!
Validates configuration and raises errors for invalid values
Source