Documentation
¶
Index ¶
Constants ¶
View Source
const Flag = "config"
Flag is the CLI flag name for the config file path.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
// Env controls which mode the app runs in.
// "development" enables the Vite dev server integration and verbose output.
// "production" (default) serves built assets from frontend/dist.
Env string `yaml:"env"`
}
AppConfig holds application-level settings exposed to the end user.
type Config ¶
type Config struct {
App AppConfig `yaml:"app"`
HTTP HTTPConfig `yaml:"http"`
Database DatabaseConfig `yaml:"database"`
Log LogConfig `yaml:"log"`
Osu Osu `yaml:"osu"`
}
Config holds only the settings that are meaningful for end users. Developer/infrastructure defaults (bind addresses, timeouts, Vite paths, tray labels, etc.) are hardcoded as constants inside their respective packages.
type DatabaseConfig ¶
type DatabaseConfig struct {
Path string `yaml:"path"`
}
type HTTPConfig ¶
type HTTPConfig struct {
Port int `yaml:"port"`
}
HTTPConfig holds user-facing HTTP server settings. Low-level internals (bind address, timeouts) are hardcoded in the server package.
Click to show internal directories.
Click to hide internal directories.