Beispiel #1
0
func (this *Configure) ParseConfigure(filename string) error {
	cfg, err := config.ReadDefault(filename)
	if err != nil {
		return err
	}

	this.loopConfigure("global", cfg)

	return nil
}
Beispiel #2
0
func (this *Configure) ParseConfigure(filename string) error {
	cfg, err := config.ReadDefault(filename)
	if err != nil {
		return err
	}

	this.loopConfigure("server", cfg)
	this.loopConfigure("service", cfg)
	this.loopConfigure("redis", cfg)

	return nil
}