config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 1 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 {

	// HTTP settings
	UserAgent          string
	RequestTimeout     time.Duration
	MaxConcurrentHosts int
	MaxRequestsPerHost int

	// Logging
	EnableDebugLogging bool

	// CacheTTL is the default time-to-live for all cache layers.
	CacheTTL time.Duration

	// MaxCacheEntries affects memory LRU capacity.
	MaxCacheEntries int

	// Memory cache enabled flag
	EnableMemoryCache bool

	// File cache enabled flag
	EnableFileCache bool

	// Directory where file cache entries are stored
	CacheDirectory string

	// Redis cache enabled flag
	EnableRedisCache bool

	// Redis server address, e.g. "localhost:6379"
	RedisAddress string
}

Config holds core configuration values used across Aether.

Many of these values control networking behavior and logging verbosity; Stage 3 extends this struct with caching configuration.

func Default

func Default() *Config

Default constructs a Config with safe, conservative defaults.

These defaults are chosen to support polite network behavior and predictable caching without requiring configuration.

Jump to

Keyboard shortcuts

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