mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
25 lines
542 B
Go
25 lines
542 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type (
|
|
Month string
|
|
Commit struct {
|
|
LOC int `json:"loc,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
TimeStamp time.Time `json:"ts,omitempty"`
|
|
Author string `json:"author,omitempty"`
|
|
Repo string `json:"repo,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
}
|
|
DataSet map[time.Time]WorkDay
|
|
YearFreq []int
|
|
WorkDay struct {
|
|
Day time.Time `json:"day"`
|
|
Count int `json:"count"`
|
|
Commits []Commit `json:"commits,omitempty"`
|
|
}
|
|
)
|