Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfigPath ¶
Types ¶
type ConfigYAML ¶
type ConfigYAML struct { Logging struct { LogFile string `yaml:"logfile"` Level string `yaml:"level"` LogToStdout bool `yaml:"logToStdout"` } Defaults struct { Port int `yaml:"port"` } Bootstrap struct { Node struct { Address string `yaml:"address"` Port int `yaml:"port"` } Datacenter string `yaml:"datacenter"` } }
var Config *ConfigYAML
func NewConfig ¶
func NewConfig(configFilePath string) (*ConfigYAML, error)
Click to show internal directories.
Click to hide internal directories.