Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPathToEnvConfigFile string = "./config/consulConfig.yml"
DefaultPathToEnvConfigFile : If path is not provided by the user then default file is used.
Variables ¶
This section is empty.
Functions ¶
func GetConsulConfigMap ¶
func GetConsulConfigMap(consuls *AllConsuls) map[string]ConsulDetail
GetConsulConfigMap : Get Map of AllConsuls
Types ¶
type AllConsuls ¶
type AllConsuls struct {
ConsulConfigs []ConsulDetail `yaml:"consul.details"`
}
AllConsuls : Single struct for all the environments
func ParseConfigFile ¶
func ParseConfigFile(configFilePath string) (*AllConsuls, error)
ParseConfigFile : based on the path provided
Click to show internal directories.
Click to hide internal directories.