-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathr_topten.go
57 lines (53 loc) · 1.77 KB
/
r_topten.go
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
package whatapi
type TopTenTags []struct {
Caption string `json:"caption"`
Tag string `json:"tag"`
Limit int `json:"limit"`
Results []struct {
Name string `json:"name"`
Uses int `json:"uses"`
PosVotes int `json:"posVotes"`
NegVotes int `json:"negVotes"`
} `json:"results"`
}
type TopTenTorrents []struct {
Caption string `json:"caption"`
Tag string `json:"tag"`
Limit int `json:"limit"`
Results []struct {
TorrentID int `json:"torrentId"`
GroupID int `json:"groupId"`
Artist interface{} `json:"artist"`
GroupName string `json:"groupName"`
GroupCategory int `json:"groupCategory"`
GroupYear int `json:"groupYear"`
RemasterTitle string `json:"remasterTitle"`
Format string `json:"format"`
Encoding string `json:"encoding"`
HasLog bool `json:"hasLog"`
HasCue bool `json:"hasCue"`
Media string `json:"media"`
Scene bool `json:"scene"`
Year int `json:"year"`
Tags []string `json:"tags"`
Snatched int `json:"snatched"`
Seeders int `json:"seeders"`
Leechers int `json:"leechers"`
Data int64 `json:"data"`
} `json:"results"`
}
type TopTenUsers []struct {
Caption string `json:"caption"`
Tag string `json:"tag"`
Limit int `json:"limit"`
Results []struct {
ID int `json:"id"`
Username string `json:"username"`
Uploaded float64 `json:"uploaded"`
UpSpeed float64 `json:"upSpeed"`
Downloaded float64 `json:"downloaded"`
DownSpeed float64 `json:"downSpeed"`
NumUploads int `json:"numUploads"`
JoinDate string `json:"joinDate"`
} `json:"results"`
}