-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
99 lines (90 loc) · 1.76 KB
/
types.go
File metadata and controls
99 lines (90 loc) · 1.76 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
package main
import (
"github.com/rdtmaster/go-reddit/v4/reddit"
"github.com/eknkc/amber"
)
type commentSubmP struct {
Thing_id string `json:"thing_id"`
Text string `json:"text"`
}
type overviewWrap struct {
PageTitle string
Username string
Page string
After string
Sorting string
Items []PostOrComment
}
type SubredditResponseWrapper struct {
PageTitle string
Sub string
After string
Sorting string
Items []*reddit.Post
}
type PostOrComment struct {
Kind string
P *reddit.Post
C *reddit.Comment
}
type voteResult struct {
Direction string `json:"direction"`
Thing_id string `json:"thing_id"`
}
type CompactConfig struct {
EcoMode bool
NightMode bool
DisplayFlairEmojis bool
DefaultLimit int
LocalAddress string
MarkMsgsUnreadOnView bool
CheckMsgs bool
HTTPS struct {
Use bool
LocalAddress string
KeyPath string
CRTPath string
}
Logging bool
Auth struct {
Use bool
Username string
Password string
}
Credentials reddit.Credentials
TemplateOptions amber.Options
}
type DataWraper[T any] struct {
PageTitle string
Items []*T
}
type PCWrapper struct {
PageTitle string
Items []*reddit.Comment
WP *reddit.Post
Thread bool
}
type editP struct {
Thing_id string `json:"thing_id"`
Selftext string `json:"selftext"`
}
type editResult struct {
Body string `json:"body"`
}
type userAttrs struct {
Submitter bool
Moderator bool
Admin bool
Letters string
}
type commentWrapper struct {
Comment *reddit.Comment
}
type MessagesWrapper struct {
After string
Page string
PageTitle string
Sorting string
Items []*reddit.Message
}
type partRespOverview struct {}