Documentation ¶
Index ¶
- func AlbumArt() bool
- func GetAudioToken() string
- func GetSessionKey() string
- func GetThemeBackgroundColor() string
- func GetThemePrimaryColor() string
- func GetThemePrimaryTextColor() string
- func GetThemeSecondaryTextColor() string
- func GetToken() (token string)
- func GetUserID() (userID int)
- func HasTheme() bool
- func SaveAPIKey(key string)
- func SaveAudioToken(audioToken string)
- func SaveListenToken(token string)
- func SaveNetwork(network *components.Network)
- func SaveSessionKey(sessionKey string)
- func SaveUserID(userID int64)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlbumArt ¶ added in v1.3.3
func AlbumArt() bool
AlbumArt returns true if album art should be fetched when a new song begins playing
func GetAudioToken ¶ added in v1.3.11
func GetAudioToken() string
GetAudioToken gets the audio token from disk
func GetSessionKey ¶ added in v1.3.11
func GetSessionKey() string
GetSessionKey gets the session key from disk
func GetThemeBackgroundColor ¶ added in v1.3.16
func GetThemeBackgroundColor() string
GetThemePrimaryColor gets the theme's background color
func GetThemePrimaryColor ¶ added in v1.3.16
func GetThemePrimaryColor() string
GetThemePrimaryColor gets the theme's primary color
func GetThemePrimaryTextColor ¶ added in v1.3.16
func GetThemePrimaryTextColor() string
GetThemePrimaryTextColor gets the theme's primary text color
func GetThemeSecondaryTextColor ¶ added in v1.3.16
func GetThemeSecondaryTextColor() string
GetThemePrimaryColor gets the theme's primary color
func GetToken ¶
func GetToken() (token string)
GetToken returns the di.fm API token if one is available
func HasTheme ¶ added in v1.3.16
func HasTheme() bool
HasTheme returns true if the di-tui config has a Theme set
func SaveAudioToken ¶ added in v1.3.11
func SaveAudioToken(audioToken string)
SaveAudioToken saves the audio token to disk
func SaveListenToken ¶ added in v1.3.11
func SaveListenToken(token string)
SaveListenToken saves the user's listen token
func SaveNetwork ¶ added in v1.10.0
func SaveNetwork(network *components.Network)
SaveNetwork saves the user's default network
func SaveSessionKey ¶ added in v1.3.11
func SaveSessionKey(sessionKey string)
SaveSessionKey saves the session key to disk