Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrElse ¶
GetEnvOrElse retrieves the value of environment variable or fallback if it does not exist
Types ¶
type Config ¶
type Config struct {
Server *ListenerConfig
Metadata map[string]string
}
Config store the main application configuration
func ReadConfig ¶
ReadConfig loads the environment-specific configuration in config directory
type HTTPSServerConfig ¶
HTTPSServerConfig stores HTTPS server specific config
type HTTPServerConfig ¶
type HTTPServerConfig struct {
Port int
}
HTTPServerConfig stores HTTP server specific config
type ListenerConfig ¶
type ListenerConfig struct {
HTTP *HTTPServerConfig
HTTPS *HTTPSServerConfig
}
ListenerConfig stores HTTP or HTTPS server config
Click to show internal directories.
Click to hide internal directories.