add graph caching and garbage collection

This commit is contained in:
2023-01-29 23:37:25 -08:00
parent 0390abcfeb
commit 59aa42b563
3 changed files with 81 additions and 12 deletions

View File

@@ -14,9 +14,13 @@ type (
Repo string `json:"repo,omitempty"`
Path string `json:"path,omitempty"`
}
DataSet map[time.Time]WorkDay
YearFreq []int
WorkDay struct {
DataSet map[time.Time]WorkDay
YearFreq []int
ExpYearFreq struct {
YearFreq YearFreq
Created time.Time
}
WorkDay struct {
Day time.Time `json:"day"`
Count int `json:"count"`
Commits []Commit `json:"commits,omitempty"`