Пример #1
0
Файл: main.go Проект: 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)
}
Пример #2
0
Файл: main.go Проект: rach/pome
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)
}