-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.go
More file actions
66 lines (57 loc) · 1.92 KB
/
Copy pathtypes.go
File metadata and controls
66 lines (57 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package main
type ProjectData struct {
ModsDir string `json:"mods_dir"`
LatestSnapshot *Snapshot `json:"latest_snapshot"`
Dependencies map[string][]string `json:"dependencies"`
SavedNewMods []string `json:"saved_new_mods"`
DismissedHangingLibs []string `json:"dismissed_hanging_libs"`
RequiredMods []string `json:"required_mods"`
Theme string `json:"theme"`
}
type Snapshot struct {
Name string `json:"name"`
Mods []string `json:"mods"`
}
type ModrinthVersionFile struct {
Hashes map[string]string `json:"hashes"`
URL string `json:"url"`
Filename string `json:"filename"`
Primary bool `json:"primary"`
Size int `json:"size"`
}
type ModrinthDependency struct {
VersionID string `json:"version_id"`
ProjectID string `json:"project_id"`
FileName string `json:"file_name"`
DependencyType string `json:"dependency_type"`
}
type ModrinthVersion struct {
ID string `json:"id"`
ProjectID string `json:"project_id"`
Name string `json:"name"`
VersionNumber string `json:"version_number"`
Files []ModrinthVersionFile `json:"files"`
Dependencies []ModrinthDependency `json:"dependencies"`
}
type ModrinthFileInfo struct {
ID string `json:"id"`
Filename string `json:"filename"`
Hashes map[string]string `json:"hashes"`
URL string `json:"url"`
Primary bool `json:"primary"`
}
type LogMessage struct {
Message string `json:"message"`
Level string `json:"level"`
}
type TestGroupInfo struct {
Count int `json:"count"`
Mods []string `json:"mods"`
}
const (
LogInfo = "INFO"
LogSuccess = "SUCCESS"
LogError = "ERROR"
LogWarning = "WARNING"
LogProgress = "PROGRESS"
)