Beispiel #1
0
func LoadConfig() {
	var err error
	c, err = server.NewConfig("systail", Config{})
	if err != nil {
		common.Fatal("Unable to load systail config; %v", err)
	}
}
Beispiel #2
0
func loadConfig() {
	var err error
	c, err = server.NewConfig("cloud_controller_ng", Config{})
	if err != nil {
		common.Fatal("Unable to load cc_ng config; %v", err)
	}
}
Beispiel #3
0
func LoadConfig() {
	var err error
	c, err = server.NewConfig("logyard_sieve", Config{})
	if err != nil {
		log.Fatalf("Unable to load logyard_sieve config; %v", err)
	}
	log.Info(getConfig().Events)
}
Beispiel #4
0
func NewConfig(group string, s interface{}) (*ServerConfig, error) {
	config, err := server.NewConfig(group, s)
	return &ServerConfig{config}, err
}