示例#1
0
func init() {
	validate_environment()
	monitor.ConfigFromEnv()
	if !monitor.EmailEnabled() {
		log.Fatal("[!] error configuring monitor: mail not configured")
	}

	if !monitor.PushoverEnabled() {
		log.Fatal("[!] error configuring monitor: pushover not configured")
	}
}
示例#2
0
文件: app.go 项目: gokyle/golobsters
func init() {
	log.Println("[+] initialising application")
	validate_environment()
	monitor.ConfigFromEnv()
	if !monitor.EmailEnabled() {
		log.Fatal("[!] error configuring monitor: mail not configured")
	}

	if !monitor.PushoverEnabled() {
		log.Fatal("[!] error configuring monitor: pushover not configured")
	}
}