-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstructures.go
25 lines (23 loc) · 995 Bytes
/
structures.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
package main
// Config holds data parsed from the config.yml
type Config struct {
Token string `fig:"token" validate:"required"`
Owner string `fig:"owner" validate:"required"`
ClientID string `fig:"clientid"`
ClientSecret string `fig:"clientsecret"`
DSN string `fig:"datasourcename" validate:"required"`
Driver string `fig:"drivername" validate:"required"`
LogLevel string `fig:"loglevel" validate:"required"`
YouTubeAPI string `fig:"youtubeapikey"`
Address string `fig:"address"`
Origin string `fig:"origin"`
ApiTokens []apiToken `fig:"apitokens"`
WhiteList bool `fig:"whitelist"`
GuildList []string `fig:"guildlist"`
}
type apiToken struct {
UserID string `fig:"userid" validate:"required"`
Token string `fig:"token" validate:"required"`
TextChannel string `fig:"textchannelid" validate:"required"`
Guild string `fig:"guildid" validate:"required"`
}