1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/models/aggregation.go

25 lines
440 B
Go
Raw Normal View History

package models
import "time"
type AggregationType string
const (
AggregationProject AggregationType = "project"
AggregationLanguage AggregationType = "language"
AggregationEditor AggregationType = "editor"
AggregationOS AggregationType = "os"
)
type Aggregation struct {
From time.Time
To time.Time
Type AggregationType
Items []AggregationItem
}
type AggregationItem struct {
Key string
Total time.Duration
}