Esempio n. 1
0
func (c Daily) OutgoingPeerGenStatsByDayAndPeer(day string, peer string, tmp int) revel.Result {
	revel.TRACE.Printf("[Daily Peer] Get general outgoing stats for the given date [%s] and peer [%s].\r\n", day, peer)
	results := mongo.GetPeerGenStatsByDayAndPeer(day, peer, "out", c.MongoDatabase)
	return c.RenderJson(results)
}
Esempio n. 2
0
func (c Daily) IncommingPeerGenStatsByDay(day string, tmp int) revel.Result {
	revel.TRACE.Printf("[Daily Peer] Get general incomming stats for the given date [%s].\r\n", day)
	results := mongo.GetPeerGenStatsByDayAndPeer(day, "", "in", c.MongoDatabase)
	return c.RenderJson(results)
}