Documentation ¶
Overview ¶
Package config reads configuration data from the file which is provided in the "config" argument when the app is started and returns the Configuration type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Servers []Server `yaml:"servers"`
}
func GetConfiguration ¶
func GetConfiguration(fileName string) (Configuration, error)
GetConfiguration reads the configuration from the file and converts it to the Configuration object.
Click to show internal directories.
Click to hide internal directories.