/
meta.go
40 lines (35 loc) · 903 Bytes
/
meta.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
package sportmonks
type (
// Meta struct.
Meta struct {
Pagination *Pagination `json:"pagination,omitempty"`
Plan *Plan `json:"plan,omitempty"`
Sports *Sports `json:"sports,omitempty"`
}
// Pagination struct.
Pagination struct {
Total int `json:"total"`
Count int `json:"count"`
PerPage int `json:"per_page"`
CurrentPage int `json:"current_page"`
TotalPages int `json:"total_pages"`
}
// Plan struct.
Plan struct {
Name string `json:"name"`
Price string `json:"price"`
RequestLimit string `json:"request_limit"`
}
// Sports struct.
Sports []struct {
ID int `json:"id"`
Name string `json:"name"`
Current bool `json:"current"`
}
// DateTime struct.
DateTime struct {
Date string `json:"date"`
TimezoneType int `json:"timezone_type"`
Timezone string `json:"timezone"`
}
)