Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { CurrentEnvironment string Environments []EnvironmentConfig }
Configuration represents a list of configurantion for many environments
func (Configuration) GetCurrentEnvironmentConfig ¶
func (c Configuration) GetCurrentEnvironmentConfig() (EnvironmentConfig, error)
GetCurrentEnvironmentConfig returns the current environment configuration
type EnvironmentConfig ¶
type EnvironmentConfig struct { Name string HTTPServer HTTPServerConfig }
EnvironmentConfig represents an environment item configuration
type HTTPServerConfig ¶
type HTTPServerConfig struct {
Address string
}
HTTPServerConfig represents the HTTP Server address configuration
func (HTTPServerConfig) GetFormatedAddress ¶
func (h HTTPServerConfig) GetFormatedAddress() string
GetFormatedAddress returns a formated HTTP Address
type Repository ¶
type Repository interface {
GetSystemConfiguration() (Configuration, error)
}
Repository represents a contract to handle configuration reading
Click to show internal directories.
Click to hide internal directories.