Documentation ¶
Overview ¶
Package spotify provides utilities used to control Spotify desktop application and utilize Spotify Web API.
Index ¶
- Variables
- func IsEOF(err error) bool
- func IsRunning(err error) bool
- type Album
- type App
- type Artist
- type Dbus
- func (d *Dbus) CanControl() (bool, error)
- func (d *Dbus) CanNext() (bool, error)
- func (d *Dbus) CanPlay() (bool, error)
- func (d *Dbus) CanPrev() (bool, error)
- func (d *Dbus) Goto(offset time.Duration) error
- func (d *Dbus) Length() (l time.Duration, err error)
- func (d *Dbus) Next() error
- func (d *Dbus) Open(uri URI) error
- func (d *Dbus) Pause() error
- func (d *Dbus) Play() error
- func (d *Dbus) Pos() (time.Duration, error)
- func (d *Dbus) Prev() error
- func (d *Dbus) Quit() error
- func (d *Dbus) Raise() error
- func (d *Dbus) SetPos(pos time.Duration) error
- func (d *Dbus) Status() (Status, error)
- func (d *Dbus) Stop() error
- func (d *Dbus) Toggle() error
- func (d *Dbus) Track() (track Track, err error)
- type Search
- type Status
- type Track
- type URI
Constants ¶
This section is empty.
Variables ¶
var ErrIsRunning = errorf("app is already running")
ErrIsRunning is returned if application is already running.
Functions ¶
Types ¶
type Album ¶
type Album struct { URI string // URI is a Spotify URI of the album. Name string // Name is the name of the album. Artists []Artist // Artists is a list of artists of the album. }
Album is a model for album's data.
type App ¶
App is a representation of Spotify desktop application.
func (*App) Connected ¶
Connected returns a boolean indicating of a is connected to a Spotify instance.
type Artist ¶
type Artist struct { URI string // URI is a Spotify URI of the artist. Name string // Name of the artist. }
Artist is a model for artist's data.
type Dbus ¶
Dbus is a structure implementing Dbus logic controlling Spotify desktop application.
func (*Dbus) CanControl ¶
CanControl checks if control is available.
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
Search implements operations for searching through Spotify Web API.
func (*Search) Album ¶
Album searches for requested albums. name is the name of searched album, c chan is used to return found albums and err i used to return search errors.
type Track ¶
type Track struct { URI string // URI is a Spotify URI of the track. Name string // Name is the name of the track. AlbumURI string // AlbumURI is a URI of album containing track. AlbumName string // AlbumName is the name of album containing track. Artists []Artist // Artists is a list of artists of the track. }
Track is a model for track's data.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/guelfey/go.dbus
Package dbus implements bindings to the D-Bus message bus system.
|
Package dbus implements bindings to the D-Bus message bus system. |
_workspace/src/github.com/guelfey/go.dbus/introspect
Package introspect provides some utilities for dealing with the DBus introspection format.
|
Package introspect provides some utilities for dealing with the DBus introspection format. |
_workspace/src/github.com/guelfey/go.dbus/prop
Package prop provides the Properties struct which can be used to implement org.freedesktop.DBus.Properties.
|
Package prop provides the Properties struct which can be used to implement org.freedesktop.DBus.Properties. |
_workspace/src/github.com/pblaszczyk/go.utils
Package utils provide access to utils for: - manipulating environment variables, - frequently used fs operations.
|
Package utils provide access to utils for: - manipulating environment variables, - frequently used fs operations. |
_workspace/src/github.com/rthornton128/goncurses
Package goncurses is a new curses (ncurses) library for the Go programming language.
|
Package goncurses is a new curses (ncurses) library for the Go programming language. |
_workspace/src/github.com/rthornton128/goncurses/examples/acs
An example of using AddChar to show a non-standard character.
|
An example of using AddChar to show a non-standard character. |
_workspace/src/github.com/rthornton128/goncurses/examples/color
Demonstrates some of the color facilities of ncurses
|
Demonstrates some of the color facilities of ncurses |
_workspace/src/github.com/rthornton128/goncurses/examples/concurrency
This example demonstrates using goncurses with Go's built-in concurrency primatives.
|
This example demonstrates using goncurses with Go's built-in concurrency primatives. |
_workspace/src/github.com/rthornton128/goncurses/examples/curs_menu
This example show a basic menu similar to that found in the ncurses * examples from TLDP
|
This example show a basic menu similar to that found in the ncurses * examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/form
This simple example demonstrates how to implement a form
|
This simple example demonstrates how to implement a form |
_workspace/src/github.com/rthornton128/goncurses/examples/getstr
This example demonstrates reading a string from input, rather than a * single character
|
This example demonstrates reading a string from input, rather than a * single character |
_workspace/src/github.com/rthornton128/goncurses/examples/hello
The classic "Hello, World!" program in Goncurses!
|
The classic "Hello, World!" program in Goncurses! |
_workspace/src/github.com/rthornton128/goncurses/examples/init
Demonstrates some of the initilization options for ncurses; In gnome, the F1 key launches help, so F2 is tested for instead
|
Demonstrates some of the initilization options for ncurses; In gnome, the F1 key launches help, so F2 is tested for instead |
_workspace/src/github.com/rthornton128/goncurses/examples/menu
This example demonstrates the use of the menu library
|
This example demonstrates the use of the menu library |
_workspace/src/github.com/rthornton128/goncurses/examples/menu_mcol
This example shows a basic multi-column menu similar to that found in the * ncurses examples from TLDP
|
This example shows a basic multi-column menu similar to that found in the * ncurses examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/menu_scroll
This example shows a scrolling menu similar to that found in the ncurses * examples from TLDP
|
This example shows a scrolling menu similar to that found in the ncurses * examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/menu_subwin
This example show a basic menu similar to that found in the ncurses * examples from TLDP
|
This example show a basic menu similar to that found in the ncurses * examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/menugrey
This example show a basic menu similar to that found in the ncurses * examples from TLDP
|
This example show a basic menu similar to that found in the ncurses * examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/menutoggle
This example show a basic menu similar to that found in the ncurses * examples from TLDP
|
This example show a basic menu similar to that found in the ncurses * examples from TLDP |
_workspace/src/github.com/rthornton128/goncurses/examples/mouse
Expanding on the basic menu example, the example demonstrates how you * could possibly utilize the mouse to navigate a menu and select options
|
Expanding on the basic menu example, the example demonstrates how you * could possibly utilize the mouse to navigate a menu and select options |
_workspace/src/github.com/rthornton128/goncurses/examples/newterm
This example demonstrates how one might write to multiple terminals from a single program or redirect output.
|
This example demonstrates how one might write to multiple terminals from a single program or redirect output. |
_workspace/src/github.com/rthornton128/goncurses/examples/pad
A basic example of how to create and display a pad.
|
A basic example of how to create and display a pad. |
_workspace/src/github.com/rthornton128/goncurses/examples/panel
A simmple example of how to use panels
|
A simmple example of how to use panels |
_workspace/src/github.com/rthornton128/goncurses/examples/panel2
A slightly more advanced example of how to use the panel routines
|
A slightly more advanced example of how to use the panel routines |
_workspace/src/github.com/rthornton128/goncurses/examples/print
This example demonstrates the use of the print function.
|
This example demonstrates the use of the print function. |
_workspace/src/github.com/rthornton128/goncurses/examples/slk
Demonstarates the use of the SLK Soft-Keys facilities
|
Demonstarates the use of the SLK Soft-Keys facilities |
_workspace/src/github.com/rthornton128/goncurses/examples/starfield
Starfield is a simple Goncurses game demo.
|
Starfield is a simple Goncurses game demo. |
_workspace/src/github.com/rthornton128/goncurses/examples/window
This simple example demonstrates how one might move a window about the * screen.
|
This simple example demonstrates how one might move a window about the * screen. |
cmd
|
|