Documentation ¶
Index ¶
Constants ¶
View Source
const ( APPNAME = "spogo" CONFIGFILE = "config.yaml" ACCESSTOKENFILE = "access-token.json" REQUESTTOKENFILE = "refresh-token.json" DEVICEFILE = "device.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Spotify Spotify `yaml:"spotify"` Color struct { Album struct { Name int `yaml:"name"` Artist int `yaml:"artist"` Other int `yaml:"other"` } `yaml:"album"` Track struct { Name int `yaml:"name"` Artist int `yaml:"artist"` Other int `yaml:"other"` } `yaml:"track"` } `yaml:"color"` // contains filtered or unexported fields }
The struct that holds configuration options from "config.yaml", including spotify client information, and all information about directory locations.
func (*Config) DeviceFile ¶
Returns the config file, ".cache/spogo/device.json" for unix.
Click to show internal directories.
Click to hide internal directories.