fathom/pkg/aggregator/result.go

20 lines
414 B
Go
Raw Normal View History

2018-05-14 13:31:33 +00:00
package aggregator
import (
"github.com/usefathom/fathom/pkg/models"
)
2018-05-21 09:54:01 +00:00
type results struct {
2018-05-14 13:31:33 +00:00
Sites map[string]*models.SiteStats
Pages map[string]*models.PageStats
Referrers map[string]*models.ReferrerStats
}
2018-05-21 09:54:01 +00:00
func newResults() *results {
return &results{
2018-05-14 13:31:33 +00:00
Sites: map[string]*models.SiteStats{},
Pages: map[string]*models.PageStats{},
Referrers: map[string]*models.ReferrerStats{},
}
}