config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 2 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 {
	SiteTitle       string `yaml:"site_title"`
	DefaultPerPage  int    `yaml:"default_per_page"`
	ThemeColor      string `yaml:"theme_color"`
	SessionTTL      int    `yaml:"session_ttl_hours"`
	SearchThreshold int64  `yaml:"search_threshold"`
	UploadDir       string `yaml:"upload_dir"`
}

Config holds the configuration for the admin panel.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a sane default configuration.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig loads configuration from a YAML file.

Jump to

Keyboard shortcuts

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