Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
func ReadTokensFile ¶
func ReadTokensFile(cfg *TwitchScrape, overwrite bool)
Types ¶
type AppConfig ¶
type AppConfig struct { Website `toml:"website"` Debug `toml:"debug"` Database `toml:"database"` Redis `toml:"redis"` Metrics `toml:"metrics"` TwitchScrape `toml:"twitchscrape"` }
func FromContext ¶
func ReadSettingsFile ¶
func ReadSettingsFile() *AppConfig
type TwitchScrape ¶
type TwitchScrape struct { ClientID string `toml:"clientid"` ClientSecret string `toml:"clientsecret"` AccessToken string `toml:"accesstoken"` RefreshToken string `toml:"refreshtoken"` GetSubURL string `toml:"getsuburl"` ModSubURL string `toml:"modsuburl"` SubURL string `toml:"suburl"` PollMinutes int64 `toml:"pollminutes"` Password string `toml:"password"` Channel string `toml:"channel"` ChannelID string `toml:"channelid"` }
type TwitchTokens ¶
Click to show internal directories.
Click to hide internal directories.