-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
109 lines (106 loc) · 3.72 KB
/
types.go
File metadata and controls
109 lines (106 loc) · 3.72 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package meetupGCal
//Group is the data type for a meetup group
type Group struct {
Score float64 `json:"score"`
ID int `json:"id"`
Name string `json:"name"`
Link string `json:"link"`
Urlname string `json:"urlname"`
Description string `json:"description"`
Created int64 `json:"created"`
City string `json:"city"`
Country string `json:"country"`
LocalizedCountryName string `json:"localized_country_name"`
State string `json:"state"`
JoinMode string `json:"join_mode"`
Visibility string `json:"visibility"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Members int `json:"members"`
Organizer struct {
ID int `json:"id"`
Name string `json:"name"`
Bio string `json:"bio"`
Photo struct {
ID int `json:"id"`
HighresLink string `json:"highres_link"`
PhotoLink string `json:"photo_link"`
ThumbLink string `json:"thumb_link"`
} `json:"photo"`
} `json:"organizer"`
Who string `json:"who"`
GroupPhoto struct {
ID int `json:"id"`
HighresLink string `json:"highres_link"`
PhotoLink string `json:"photo_link"`
ThumbLink string `json:"thumb_link"`
} `json:"group_photo"`
Timezone string `json:"timezone"`
NextEvent struct {
ID string `json:"id"`
Name string `json:"name"`
YesRsvpCount int `json:"yes_rsvp_count"`
Time int64 `json:"time"`
UtcOffset int `json:"utc_offset"`
} `json:"next_event"`
Category struct {
ID int `json:"id"`
Name string `json:"name"`
Shortname string `json:"shortname"`
SortName string `json:"sort_name"`
} `json:"category"`
Photos []struct {
ID int `json:"id"`
HighresLink string `json:"highres_link"`
PhotoLink string `json:"photo_link"`
ThumbLink string `json:"thumb_link"`
} `json:"photos"`
}
//Event is the data type for a meetup event
type Event struct {
Created int64 `json:"created"`
Duration int `json:"duration"`
ID string `json:"id"`
Name string `json:"name"`
RsvpLimit int `json:"rsvp_limit"`
Status string `json:"status"`
Time int64 `json:"time"`
Updated int64 `json:"updated"`
UtcOffset int `json:"utc_offset"`
WaitlistCount int `json:"waitlist_count"`
YesRsvpCount int `json:"yes_rsvp_count"`
Group struct {
Created int64 `json:"created"`
Name string `json:"name"`
ID int `json:"id"`
JoinMode string `json:"join_mode"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Urlname string `json:"urlname"`
Who string `json:"who"`
} `json:"group"`
Link string `json:"link"`
Description string `json:"description"`
Venue struct {
ID int `json:"id"`
Name string `json:"name"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Repinned bool `json:"repinned"`
Address1 string `json:"address_1"`
Address2 string `json:"address_2"`
Address3 string `json:"address_3"`
City string `json:"city"`
Country string `json:"country"`
LocalizedCountryName string `json:"localized_country_name"`
} `json:"venue"`
Visibility string `json:"visibility"`
}
//json config to provide the data
type Config struct {
CalendarId string `json:"calendarId"`
MeetupKey string `json:"meetupKey"`
GroupsFile string `json:"groupsFile"`
LookupEvents string `json:"lookup"`
Zip string `json:"zip"`
}