main / internal/domain/git.go
434 B · Go Raw
1package domain
2
3import "time"
4
5type TreeEntry struct {
6 Name string
7 Path string
8 IsDir bool
9 Size int64
10 Mode string
11}
12
13type Commit struct {
14 Hash string
15 ShortHash string
16 Message string
17 Author string
18 Email string
19 When time.Time
20}
21
22type FileBlob struct {
23 Path string
24 Content []byte
25 IsBinary bool
26 Size int64
27}
28
29type FileDiff struct {
30 Path string
31 Patch string
32 Added int
33 Deleted int
34}