Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { Close() error Data() (Data, error) MusicDir() (string, error) PostEvents(ctx context.Context) TogglePause() bool }
Client is an interface implemented by all clients.
type Data ¶ added in v0.7.0
Data is an aggregate type for Song, Status and lyrics.Lyrics.
type MPDClient ¶ added in v0.6.0
type MPDClient struct {
// contains filtered or unexported fields
}
MPDClient implents a Client for the Music Player Daemon (MPD).
func NewMPDClient ¶ added in v0.6.0
NewMPDClient returns a pointer to an instance of MPDClient. A password of "" can be used if there is no password.
func (*MPDClient) PostEvents ¶ added in v0.7.0
PostEvents listens for events, and forwards them to events.PostEvent.
func (*MPDClient) TogglePause ¶ added in v0.7.1
TogglePause toggles the pause state.
type MPDSong ¶ added in v0.6.0
MPDSong implements Song.
type MPDStatus ¶ added in v0.6.0
MPDStatus implements Status.
type OptionsEvent ¶ added in v0.7.0
type OptionsEvent struct {
// contains filtered or unexported fields
}
OptionsEvent occurs when an option in the music player changes.
type PlayerEvent ¶ added in v0.7.0
type PlayerEvent struct {
// contains filtered or unexported fields
}
PlayerEvent occurs when the state of the music player changes.
Click to show internal directories.
Click to hide internal directories.