config

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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 Load

func Load() (Config, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL