func main() {
	log.Infof("Starting Rancher Catalog service")

	manager.SetEnv()
	manager.Init()

	router := service.NewRouter()
	log.Fatal(http.ListenAndServe(":8088", router))
}
Esempio n. 2
0
func main() {
	log.Infof("Starting Rancher Catalog service")
	router := service.NewRouter()
	handler := service.MuxWrapper{false, router}

	go func() {
		manager.SetEnv()
		manager.Init()
	}()
	log.Fatal(http.ListenAndServe(":8088", &handler))
}
Esempio n. 3
0
func main() {
	log.Infof("Starting Rancher Catalog service")
	router := service.NewRouter()
	handler := service.MuxWrapper{false, router}

	manager.GetCommandLine()

	go manager.Init()
	manager.WatchSignals()
	log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *manager.Port), &handler))
}