Exemple #1
0
Fichier : main.go Projet : lym/pome
func main() {
	kingpin.MustParse(parseCmdLine(os.Args[1:]))
	var metrics = MetricList{Version: Version}
	pwd := os.Getenv("PGPASSWORD")
	if *password {
		fmt.Print("Enter Password: "******"Starting Pome %s", Version)
	log.Printf("Application will be available at http://127.0.0.1:%d", *webPort)
	initWebServer(context, *webPort)
}
Exemple #2
0
func main() {
	kingpin.MustParse(parseCmdLine(os.Args[1:]))
	var metrics = initMetricList(Version)
	pwd := os.Getenv("PGPASSWORD")
	if *password {
		fmt.Print("Enter Password: "******"Starting Pome %s", Version)
	log.Printf("Application will be available at http://127.0.0.1:%d", *webPort)

	initScheduler(
		db,
		&metrics,
		*scheduleTableBloat,
		*scheduleDbSize,
		*scheduleIndexBloat,
		*scheduleNumConn,
		*scheduleTPS,
	)
	initWebServer(context, *webPort)
}