Example #1
0
func StartServer(config models.Configuration) {
	m := martini.Classic()
	m.Use(render.Renderer())
	m.Get("/", func(r render.Render) {
		stats := stats.GatherStats(config)
		r.HTML(200, "index", stats)
	})
	m.Run()
}
Example #2
0
func gatherStats(config models.Configuration) {
	stats.GatherStats(config)
}