1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-20 02:00:49 +00:00
strimertul/modules/modules.go

36 lines
853 B
Go
Raw Normal View History

2021-05-02 12:29:43 +00:00
package modules
const ModuleConfigKey = "stul-meta/modules"
type ModuleConfig struct {
CompletedOnboarding bool `json:"configured"`
EnableKV bool `json:"kv"`
EnableStaticServer bool `json:"static"`
EnableTwitchbot bool `json:"twitchbot"`
EnableStulbe bool `json:"stulbe"`
EnableLoyalty bool `json:"loyalty"`
}
const HTTPServerConfigKey = "http/config"
type HTTPServerConfig struct {
Bind string `json:"bind"`
Path string `json:"path"`
}
const TwitchBotConfigKey = "twitchbot/config"
type TwitchBotConfig struct {
Username string `json:"username"`
Token string `json:"oauth"`
Channel string `json:"channel"`
}
const StulbeConfigKey = "stulbe/config"
type StulbeConfig struct {
Endpoint string `json:"endpoint"`
Token string `json:"token"`
EnableLoyalty bool `json:"enable_loyalty"`
}