spotigopher

package
v0.0.0-...-7d8168f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Artist      []string
	Title       string
	Album       string
	Rating      string
	TrackID     string
	TrackNumber int32
	URL         string
	ArtworkURL  string
	Status      string
}

Info holds all available Information we get over the dbus

type SpotifyClient

type SpotifyClient struct {
}

func NewClient

func NewClient() SpotifyClient

NewClient returns an Instance of Spotify Cleint

func (*SpotifyClient) GetInfo

func (s *SpotifyClient) GetInfo() (Info, error)

GetInfo returns all Spotify related Information, when Spotify is running

func (*SpotifyClient) Next

func (s *SpotifyClient) Next()

Next sends a Next Command on the DBus

func (*SpotifyClient) PlayPause

func (s *SpotifyClient) PlayPause()

PlayPause sends a PlayPause Command on the DBus

func (*SpotifyClient) Previous

func (s *SpotifyClient) Previous()

Previous sends a Previous Command on the DBus

func (*SpotifyClient) Stop

func (s *SpotifyClient) Stop()

Stop sends a Stop Command on the DBus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL