Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguration ¶
func LoadConfiguration()
LoadConfiguration loads configuration from a JSON file and environment variables.
Types ¶
type AppConfig ¶
type AppConfig struct { ConfigFile string `json:"configFile"` Debug bool `json:"debug"` MetricsPort int `json:"metricsPort"` AdminPort int `json:"adminPort"` BackendServer string `json:"backendServer"` BackendPort int `json:"backendPort"` BackendHealthCheck string `json:"backendHealthCheck"` BackendTimeoutMs int `json:"backendTimeoutMs"` FrontendPort int `json:"frontendPort"` CacheMaxSize int `json:"cacheMaxSize"` CacheableMIMETypes map[string]bool `json:"cacheableMIMETypes"` NonCacheablePatterns []string `json:"nonCacheablePatterns"` }
AppConfig structure combines both file-based and environment-based configurations.
var CFG AppConfig
Click to show internal directories.
Click to hide internal directories.