-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
37 lines (30 loc) · 904 Bytes
/
structs.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
package main
import utopiago "github.com/Sagleft/utopialib-go/v2"
type solution struct {
Config config
Utopia utopiago.Client
}
type config struct {
APIKey string `json:"apikey"`
ChannelID string `json:"channelID"`
TimeVariant string `json:"timeVariant"`
WordFilter wordFilter `json:"wordReplace"`
DebugMode bool `json:"debug"`
Utopia utopiago.Config `json:"utopia"`
}
type wordFilter struct {
ReplaceWordFrom string `json:"from"`
RaplaceWordTo string `json:"to"`
}
type apiVariants map[string]string
type sunsignData struct {
Tag string
Icon string
}
type horoscopeResponse struct {
LuckyNumber int `json:"lucky_number"` // TBD: use
LuckyTime string `json:"lucky_time"` // TBD: use
Mood string `json:"mood"` // TBD: use
Text string `json:"horoscope"`
Sunsign string `json:"sunsign"`
}