Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LogLevel *slog.LevelVar `yaml:"log_level"`
Port int `yaml:"port"`
Database DatabaseConfig `yaml:"database"`
ErrorsInResponse bool `yaml:"errors_in_response"`
IPRateLimit rate.Limit `yaml:"ip_rate_limit"`
BurstRateLimit int `yaml:"burst_rate_limit"`
}
func LoadConfig ¶
1. Load defaults 2. Load config file (lowest priority) first in the current directory, then in the home directory, then in the /etc directory 3. Override with environment variables 4. Override with command flags
Click to show internal directories.
Click to hide internal directories.