Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SpotifyClientID is the name of the Viper config key for the Spotify API client ID SpotifyClientID = "spotify_client_id" // SpotifyClientSecret is the name of the Viper config key for the Spotify API client secret SpotifyClientSecret = "spotify_client_secret" // ServerURL is the name of the Viper config key for the Server's URL ServerURL = "server_url" )
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type ConfigFile ¶
type ConfigFile struct { Server ServerConfig `mapstructure:"server"` Spotify SpotifyConfig `mapstructure:"spotify"` WifiQRCode WifiQRConfig `mapstructure:"wifi_qrcode"` Logging LogConfig `mapstrucutre:"logging"` }
func InitConfig ¶
func InitConfig() (cfg ConfigFile, err error)
InitConfig will initialize the viper configuration
type ServerConfig ¶
type SpotifyConfig ¶
type WifiQRConfig ¶
Click to show internal directories.
Click to hide internal directories.