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 Credentials `yaml:"spotify"` // 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.
func (*Config) HelpString ¶ added in v0.2.0
type Credentials ¶ added in v0.2.0
type Credentials struct { ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` }
func (*Credentials) Valid ¶ added in v0.2.0
func (c *Credentials) Valid() (bool, error)
Attempts to do the "client credentials" authentication flow to test validity of spotify client ID and client secret.
Click to show internal directories.
Click to hide internal directories.