Exemplo n.º 1
0
func main() {
	log.Infof("Starting Rancher Catalog service")

	manager.SetEnv()
	manager.Init()

	router := service.NewRouter()
	log.Fatal(http.ListenAndServe(":8088", router))
}
Exemplo 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))
}
Exemplo 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))
}