Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(cfgFile string)
Types ¶
type Config ¶
type Config struct {
RedditSecret string
RedditID string
RedditUsername string
Subreddits []Subreddits
}
func (*Config) SubredditNameList ¶
type Raw ¶
type Raw struct {
RedditSecret string `mapstructure:"reddit_secret"`
RedditID string `mapstructure:"reddit_id"`
RedditUsername string `mapstructure:"reddit_username"`
NotifyTitleTemplate string `mapstructure:"notify_title_template"`
NotifyMessageTemplate string `mapstructure:"notify_message_template"`
Notify []string `mapstructure:"notify"`
Subreddits []RawSubreddits `mapstructure:"subreddits"`
}
type RawSubreddits ¶
Click to show internal directories.
Click to hide internal directories.