Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() (*Config, *ConfigError)
Load configuration from file or environment variables Parse for stdin Return the configuration struct
func LogFilePath ¶
LogFilePath opens the log file for writing, or returns stdout if "stdout" is specified
func ParseLogLevel ¶
ParseLogLevel converts a string log level to slog.Level
Types ¶
type Config ¶
type Config struct {
HttpServer ServerConfig
Log LogConfig
O11 O11Config
JWT JWTConfig
}
type ConfigError ¶
func (*ConfigError) Error ¶
func (ce *ConfigError) Error() string
Error implements the error interface for ConfigError It formats all validation errors into a single error message
type JWTConfig ¶
Click to show internal directories.
Click to hide internal directories.