Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Search ¶ added in v1.3.1
func Search(client queue.Queuer, input string, pref *preferences.Preference) (string, error)
func ShouldQueue ¶
func ShouldQueue(client queue.Queuer, id spotify.ID, p *preferences.Preference) error
TODO: this should be in the queuer
Types ¶
type SpotifyPlayerQueue ¶
TODO: Publisher is an unnecessary struct because there is no state that the publisher tracks here.
func NewSpotifyPlayerQueue ¶ added in v1.3.1
func NewSpotifyPlayerQueue() *SpotifyPlayerQueue
func (*SpotifyPlayerQueue) Publish ¶
func (s *SpotifyPlayerQueue) Publish(client queue.Queuer, input string, pref *preferences.Preference) (spotify.ID, error)
Publish will validate that the input matches a valid Spotify URL scheme, and then attempt to queue it in the user's Spotify player.
Click to show internal directories.
Click to hide internal directories.