Documentation ¶
Overview ¶
Package config contains the dissic config and methods to add default values and validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Reddit Reddit `yaml:"reddit"` Spotify Spotify `yaml:"spotify"` Playlists []Playlist `yaml:"playlists"` HTTPPort int `yaml:"http-port"` Verbose bool `yaml:"verbose"` AuthOpenBrowser bool `yaml:"auth-open-browser"` Version string PlaylistDescription string }
Config holds the entire dissic config (config.yaml and env vars)
type Playlist ¶
type Playlist struct { Name string `yaml:"name"` ID string `yaml:"id"` Subreddits []string `yaml:"subreddits"` }
Playlist contains the playlist configuration
Click to show internal directories.
Click to hide internal directories.