-
Notifications
You must be signed in to change notification settings - Fork 1
/
listings.go
45 lines (39 loc) · 916 Bytes
/
listings.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
package grow
// Kind: Listing, generic listing wrapper - houses abritrary data types
type listingThing struct {
Kind string
Data Listing
}
// generic listing object, arbitrary data types
type Listing struct {
Before interface{}
After interface{}
Modhash interface{}
Children []interface{}
}
// Array of reddit account wrapper objects
type AccountListing struct {
Before interface{}
After interface{}
Modhash interface{}
Children []accountThing
}
// Array of reddit subreddit wrapper objects
type SubredditListing struct {
Before interface{}
After interface{}
Modhash interface{}
Children []subredditThing
}
// Array of reddit comment wrapper objects
type commentListingThing struct {
Kind string
Data CommentListing
}
// Array of reddit comment payloads
type CommentListing struct {
Before interface{}
After interface{}
Modhash interface{}
Children []commentThing
}