Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
BaseURL string
DatabasePath string
LogLevel string
LogFormat string
PollTick time.Duration
SchedMinInterval time.Duration
SchedMaxInterval time.Duration
SchedFactor float64
FeedErrorLimit int
MaxBackoff time.Duration
FeedWorkers int
BatchSize int
HostConcurrency int
ScrapeWorkers int
ScrapeTick time.Duration
ScrapeBatch int
ScrapeMaxAttempts int
ImageProxy bool
ImageProxySecret string
BlockPrivateNetworks bool
AllowPrivateCIDRs []netip.Prefix
MetricsAddr string
}
func LoadMinimal ¶ added in v0.8.0
func LoadMinimal() Config
LoadMinimal reads only the handful of settings the migrate and healthcheck subcommands actually use (all plain strings, no parsing), deliberately skipping BaseURL requirement and every poller/scraper knob. This keeps those subcommands working when BFEED_BASE_URL is unset and prevents a malformed poller variable from making a liveness probe report unhealthy. It cannot fail.
Click to show internal directories.
Click to hide internal directories.