Пример #1
0
func main() {
	log.Println("[+] app starting")
	go monitor.Monitor(bot.Run)
	log.Println("[+] launching web front end")
	frontend.HttpServer()
	log.Println("[+] app stopping")
}
Пример #2
0
func main() {
	if len(os.Args) > 1 && os.Args[1] == "persist" {
		monitor.CanExit = false
	}
	monitor.ConfigFile = "monitor.json"
	err := monitor.ConfigFromJson()
	if err != nil {
		fmt.Println("[!] error configuring monitor: ", err)
		os.Exit(1)
	}
	monitor.Monitor(run)
}
Пример #3
0
func main() {
	go monitor.Monitor(bot.Run)
	frontend.HttpServer()
}