func setupServant() *FunServantImpl { server.SetupLogging(".canbedeleted.test.log", "info", "", "", "") cf, _ := conf.Load("../etc/faed.cf") config.LoadEngineConfig(cf) server.LaunchHttpServer(":9999", "") return NewFunServant(config.Engine.Servants) }
func (this *Engine) LoadConfig(cf *conf.Conf) *Engine { config.LoadEngineConfig(cf) if section, err := cf.Section("plugin"); err == nil { plugin.LoadPlugins(section) } return this }