mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
25 lines
440 B
Go
25 lines
440 B
Go
|
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
|
||
|
}
|