Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogConfig ¶
BlogConfig contains blog-specific settings
type CacheConfig ¶
type CacheConfig struct {
MaxSizeMB int64 `yaml:"max_size_mb"`
TTLMinutes int `yaml:"ttl_minutes"`
TTL time.Duration `yaml:"-"` // Computed from TTLMinutes
}
CacheConfig contains cache settings
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Cache CacheConfig `yaml:"cache"`
Search SearchConfig `yaml:"search"`
Blog BlogConfig `yaml:"blog"`
Static StaticConfig `yaml:"static"`
// Content is the path to markdown posts
ContentFolder string `yaml:"content_folder"`
// Logging
Verbose bool `yaml:"verbose"`
}
Config represents the server configuration
func LoadFromFile ¶
LoadFromFile loads configuration from a YAML file
type SearchConfig ¶
type SearchConfig struct {
Enabled bool `yaml:"enabled"`
IndexPath string `yaml:"index_path"`
RebuildOnStart bool `yaml:"rebuild_on_start"`
}
SearchConfig contains search index settings
type ServerConfig ¶
ServerConfig contains HTTP server settings
type StaticConfig ¶
StaticConfig contains static file serving settings
Click to show internal directories.
Click to hide internal directories.