Documentation ¶
Index ¶
- Constants
- type Client
- func (d *Client) AddToQueue(song string) (int64, error)
- func (d *Client) Close() error
- func (d *Client) CurrentSong() (*types.Song, error)
- func (d *Client) Ping() error
- func (d *Client) PlaySongID(ID int64) error
- func (d *Client) SeekOffset(offset int) error
- func (d *Client) SeekTo(seconds int) error
- func (d *Client) Stats() error
- func (d *Client) Status() (*types.Status, error)
- func (d *Client) Stop() error
- func (d *Client) Toggle() error
Constants ¶
View Source
const ( // ReplyOK is an OK reply from mpd. The command went fine. ReplyOK = "OK" // ReplyACK is mpd's way letting know there is an error. ReplyACK = "ACK" )
View Source
const DefaultPort = 6600
DefaultPort is the default TCP port to the MPD service.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client to MPD. Doc at https://mpd.readthedocs.io/en/latest/protocol.html.
func (*Client) AddToQueue ¶
AddToQueue adds a song to the playlist and returns the song id.
func (*Client) CurrentSong ¶
CurrentSong gets detailed information about the song being played.
func (*Client) PlaySongID ¶
PlaySongID Begins playing the playlist at song ID.
func (*Client) SeekOffset ¶
SeekOffset seeks to the time relative to the current playing position.
Click to show internal directories.
Click to hide internal directories.